@uptime.link/statuspage 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +752 -0
- package/dist_bundle/bundle.js.map +7 -0
- package/dist_ts_web/00_commitinfo_data.d.ts +8 -0
- package/dist_ts_web/00_commitinfo_data.js +9 -0
- package/dist_ts_web/elements/index.d.ts +7 -0
- package/dist_ts_web/elements/index.js +8 -0
- package/dist_ts_web/elements/internal/uplinternal-miniheading.d.ts +4 -0
- package/dist_ts_web/elements/internal/uplinternal-miniheading.js +35 -0
- package/dist_ts_web/elements/upl-statuspage-assetsselector.d.ts +13 -0
- package/dist_ts_web/elements/upl-statuspage-assetsselector.js +58 -0
- package/dist_ts_web/elements/upl-statuspage-footer.d.ts +16 -0
- package/dist_ts_web/elements/upl-statuspage-footer.js +73 -0
- package/dist_ts_web/elements/upl-statuspage-header.d.ts +15 -0
- package/dist_ts_web/elements/upl-statuspage-header.js +109 -0
- package/dist_ts_web/elements/upl-statuspage-incidents.d.ts +18 -0
- package/dist_ts_web/elements/upl-statuspage-incidents.js +90 -0
- package/dist_ts_web/elements/upl-statuspage-statusbar.d.ts +12 -0
- package/dist_ts_web/elements/upl-statuspage-statusbar.js +55 -0
- package/dist_ts_web/elements/upl-statuspage-statusdetails.d.ts +13 -0
- package/dist_ts_web/elements/upl-statuspage-statusdetails.js +90 -0
- package/dist_ts_web/elements/upl-statuspage-statusmonth.d.ts +13 -0
- package/dist_ts_web/elements/upl-statuspage-statusmonth.js +125 -0
- package/dist_ts_web/index.d.ts +1 -0
- package/dist_ts_web/index.js +2 -0
- package/dist_ts_web/pages/index.d.ts +1 -0
- package/dist_ts_web/pages/index.js +2 -0
- package/dist_ts_web/pages/page1.d.ts +1 -0
- package/dist_ts_web/pages/page1.js +11 -0
- package/dist_ts_web/plugins.d.ts +3 -0
- package/dist_ts_web/plugins.js +4 -0
- package/dist_watch/bundle.js +28250 -0
- package/dist_watch/bundle.js.map +7 -0
- package/dist_watch/index.html +35 -0
- package/npmextra.json +19 -0
- package/package.json +47 -0
- package/readme.hints.md +0 -0
- package/readme.md +32 -0
- package/ts_web/00_commitinfo_data.ts +8 -0
- package/ts_web/elements/index.ts +7 -0
- package/ts_web/elements/internal/uplinternal-miniheading.ts +27 -0
- package/ts_web/elements/upl-statuspage-assetsselector.ts +63 -0
- package/ts_web/elements/upl-statuspage-footer.ts +72 -0
- package/ts_web/elements/upl-statuspage-header.ts +110 -0
- package/ts_web/elements/upl-statuspage-incidents.ts +90 -0
- package/ts_web/elements/upl-statuspage-statusbar.ts +51 -0
- package/ts_web/elements/upl-statuspage-statusdetails.ts +95 -0
- package/ts_web/elements/upl-statuspage-statusmonth.ts +130 -0
- package/ts_web/index.ts +1 -0
- package/ts_web/pages/index.ts +1 -0
- package/ts_web/pages/page1.ts +11 -0
- package/ts_web/plugins.ts +7 -0
|
@@ -0,0 +1,752 @@
|
|
|
1
|
+
var d1=Object.create;var _s=Object.defineProperty;var dm=Object.getOwnPropertyDescriptor;var g1=Object.getOwnPropertyNames;var y1=Object.getPrototypeOf,x1=Object.prototype.hasOwnProperty;var Is=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oe=(e,t)=>{for(var r in t)_s(e,r,{get:t[r],enumerable:!0})},b1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of g1(t))!x1.call(e,i)&&i!==r&&_s(e,i,{get:()=>t[i],enumerable:!(n=dm(t,i))||n.enumerable});return e};var Ge=(e,t,r)=>(r=e!=null?d1(y1(e)):{},b1(t||!e||!e.__esModule?_s(r,"default",{value:e,enumerable:!0}):r,e));var Ae=(e,t,r,n)=>{for(var i=n>1?void 0:n?dm(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&_s(t,r,i),i};var zs=z(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.uni=void 0;var M1=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;Us.uni=M1});var gd=z((ec,tc)=>{(function(e,t){typeof ec=="object"&&typeof tc<"u"?tc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(ec,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",l="week",u="month",c="quarter",f="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var _=["th","st","nd","rd"],I=B%100;return"["+B+(_[(I-20)%10]||_[I]||_[0])+"]"}},v=function(B,_,I){var D=String(B);return!D||D.length>=_?B:""+Array(_+1-D.length).join(I)+B},C={s:v,z:function(B){var _=-B.utcOffset(),I=Math.abs(_),D=Math.floor(I/60),N=I%60;return(_<=0?"+":"-")+v(D,2,"0")+":"+v(N,2,"0")},m:function B(_,I){if(_.date()<I.date())return-B(I,_);var D=12*(I.year()-_.year())+(I.month()-_.month()),N=_.clone().add(D,u),V=I-N<0,P=_.clone().add(D+(V?-1:1),u);return+(-(D+(I-N)/(V?N-P:P-N))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y:f,w:l,d:a,D:p,h:s,m:o,s:i,ms:n,Q:c}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},w="en",F={};F[w]=x;var H="$isDayjsObject",E=function(B){return B instanceof A||!(!B||!B[H])},R=function B(_,I,D){var N;if(!_)return w;if(typeof _=="string"){var V=_.toLowerCase();F[V]&&(N=V),I&&(F[V]=I,N=V);var P=_.split("-");if(!N&&P.length>1)return B(P[0])}else{var j=_.name;F[j]=_,N=j}return!D&&N&&(w=N),N||!D&&w},W=function(B,_){if(E(B))return B.clone();var I=typeof _=="object"?_:{};return I.date=B,I.args=arguments,new A(I)},$=C;$.l=R,$.i=E,$.w=function(B,_){return W(B,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var A=function(){function B(I){this.$L=R(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[H]=!0}var _=B.prototype;return _.parse=function(I){this.$d=function(D){var N=D.date,V=D.utc;if(N===null)return new Date(NaN);if($.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var P=N.match(m);if(P){var j=P[2]-1||0,d=(P[7]||"0").substring(0,3);return V?new Date(Date.UTC(P[1],j,P[3]||1,P[4]||0,P[5]||0,P[6]||0,d)):new Date(P[1],j,P[3]||1,P[4]||0,P[5]||0,P[6]||0,d)}}return new Date(N)}(I),this.init()},_.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},_.$utils=function(){return $},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(I,D){var N=W(I);return this.startOf(D)<=N&&N<=this.endOf(D)},_.isAfter=function(I,D){return W(I)<this.startOf(D)},_.isBefore=function(I,D){return this.endOf(D)<W(I)},_.$g=function(I,D,N){return $.u(I)?this[D]:this.set(N,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,D){var N=this,V=!!$.u(D)||D,P=$.p(I),j=function(k,g){var S=$.w(N.$u?Date.UTC(N.$y,g,k):new Date(N.$y,g,k),N);return V?S:S.endOf(a)},d=function(k,g){return $.w(N.toDate()[k].apply(N.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(g)),N)},G=this.$W,Z=this.$M,y=this.$D,re="set"+(this.$u?"UTC":"");switch(P){case f:return V?j(1,0):j(31,11);case u:return V?j(1,Z):j(0,Z+1);case l:var ce=this.$locale().weekStart||0,ke=(G<ce?G+7:G)-ce;return j(V?y-ke:y+(6-ke),Z);case a:case p:return d(re+"Hours",0);case s:return d(re+"Minutes",1);case o:return d(re+"Seconds",2);case i:return d(re+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,D){var N,V=$.p(I),P="set"+(this.$u?"UTC":""),j=(N={},N[a]=P+"Date",N[p]=P+"Date",N[u]=P+"Month",N[f]=P+"FullYear",N[s]=P+"Hours",N[o]=P+"Minutes",N[i]=P+"Seconds",N[n]=P+"Milliseconds",N)[V],d=V===a?this.$D+(D-this.$W):D;if(V===u||V===f){var G=this.clone().set(p,1);G.$d[j](d),G.init(),this.$d=G.set(p,Math.min(this.$D,G.daysInMonth())).$d}else j&&this.$d[j](d);return this.init(),this},_.set=function(I,D){return this.clone().$set(I,D)},_.get=function(I){return this[$.p(I)]()},_.add=function(I,D){var N,V=this;I=Number(I);var P=$.p(D),j=function(Z){var y=W(V);return $.w(y.date(y.date()+Math.round(Z*I)),V)};if(P===u)return this.set(u,this.$M+I);if(P===f)return this.set(f,this.$y+I);if(P===a)return j(1);if(P===l)return j(7);var d=(N={},N[o]=t,N[s]=r,N[i]=e,N)[P]||1,G=this.$d.getTime()+I*d;return $.w(G,this)},_.subtract=function(I,D){return this.add(-1*I,D)},_.format=function(I){var D=this,N=this.$locale();if(!this.isValid())return N.invalidDate||h;var V=I||"YYYY-MM-DDTHH:mm:ssZ",P=$.z(this),j=this.$H,d=this.$m,G=this.$M,Z=N.weekdays,y=N.months,re=N.meridiem,ce=function(g,S,T,M){return g&&(g[S]||g(D,V))||T[S].slice(0,M)},ke=function(g){return $.s(j%12||12,g,"0")},k=re||function(g,S,T){var M=g<12?"AM":"PM";return T?M.toLowerCase():M};return V.replace(b,function(g,S){return S||function(T){switch(T){case"YY":return String(D.$y).slice(-2);case"YYYY":return $.s(D.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return ce(N.monthsShort,G,y,3);case"MMMM":return ce(y,G);case"D":return D.$D;case"DD":return $.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ce(N.weekdaysMin,D.$W,Z,2);case"ddd":return ce(N.weekdaysShort,D.$W,Z,3);case"dddd":return Z[D.$W];case"H":return String(j);case"HH":return $.s(j,2,"0");case"h":return ke(1);case"hh":return ke(2);case"a":return k(j,d,!0);case"A":return k(j,d,!1);case"m":return String(d);case"mm":return $.s(d,2,"0");case"s":return String(D.$s);case"ss":return $.s(D.$s,2,"0");case"SSS":return $.s(D.$ms,3,"0");case"Z":return P}return null}(g)||P.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(I,D,N){var V,P=this,j=$.p(D),d=W(I),G=(d.utcOffset()-this.utcOffset())*t,Z=this-d,y=function(){return $.m(P,d)};switch(j){case f:V=y()/12;break;case u:V=y();break;case c:V=y()/3;break;case l:V=(Z-G)/6048e5;break;case a:V=(Z-G)/864e5;break;case s:V=Z/r;break;case o:V=Z/t;break;case i:V=Z/e;break;default:V=Z}return N?V:$.a(V)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return F[this.$L]},_.locale=function(I,D){if(!I)return this.$L;var N=this.clone(),V=R(I,D,!0);return V&&(N.$L=V),N},_.clone=function(){return $.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},B}(),ae=A.prototype;return W.prototype=ae,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach(function(B){ae[B[1]]=function(_){return this.$g(_,B[0],B[1])}}),W.extend=function(B,_){return B.$i||(B(_,A,W),B.$i=!0),W},W.locale=R,W.isDayjs=E,W.unix=function(B){return W(1e3*B)},W.en=F[w],W.Ls=F,W.p={},W})});var yd=z((rc,nc)=>{(function(e,t){typeof rc=="object"&&typeof nc<"u"?nc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(rc,function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",i=r();return this.format(n)===i.format(n)}}})});var vd=z((v4,bd)=>{"use strict";bd.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(t){return this.cachedIndexVersion!==t.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(t,r){this.cachedIndexVersion=t.childrenVersion,this.cachedIndex=r}}});var Sd=z((w4,wd)=>{"use strict";wd.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Cd=z((S4,Td)=>{"use strict";var kd=Symbol(),Ad=Symbol(),wr=Symbol(),Ed=Symbol(),Dt=class{constructor(t,r,n,i){this[kd]=t,this[Ad]=r,this[wr]=n,this[Ed]=i}next(){let t=this[kd],r=this[Ed],n=this[Ad];if(!this[wr])return{done:!0,value:n};let i=this[wr];return r===1?this[wr]=t._node(i).previousSibling:r===2?this[wr]=t._node(i).nextSibling:r===3?this[wr]=t._node(i).parent:r===4?this[wr]=t.preceding(i,{root:n}):this[wr]=t.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(Dt.prototype,Symbol.iterator,{value:function(){return this},writable:!1});Dt.PREV=1;Dt.NEXT=2;Dt.PARENT=3;Dt.PRECEDING=4;Dt.FOLLOWING=5;Object.freeze(Dt);Object.freeze(Dt.prototype);Td.exports=Dt});var hc=z((k4,_d)=>{"use strict";var kA=vd(),Sr=Sd(),St=Cd();function pc(){return!0}function Zn(e,t){return e[e.length-1-t]}var da=class{constructor(t){this.symbol=Symbol(t||"SymbolTree data")}initialize(t){return this._node(t),t}_node(t){if(!t)return null;let r=t[this.symbol];return r||(t[this.symbol]=new kA)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let r,n=t;for(;r=this._node(n).lastChild;)n=r;return n}preceding(t,r){let n=r&&r.root;if(t===n)return null;let i=this._node(t).previousSibling;return i?this.lastInclusiveDescendant(i):this._node(t).parent}following(t,r){let n=r&&r.root,o=!(r&&r.skipChildren)&&this._node(t).firstChild;if(o)return o;let s=t;do{if(s===n)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||pc,o=r&&r.thisArg||void 0,s=this._node(t),a=s.firstChild,l=0;for(;a;){let u=this._node(a);u.setCachedIndex(s,l),i.call(o,a)&&n.push(a),a=u.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||pc,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||pc,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,i=this._node(t);return new St(this,t,n?i.lastChild:i.firstChild,n?St.PREV:St.NEXT)}previousSiblingsIterator(t){return new St(this,t,this._node(t).previousSibling,St.PREV)}nextSiblingsIterator(t){return new St(this,t,this._node(t).nextSibling,St.NEXT)}ancestorsIterator(t){return new St(this,t,t,St.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new St(this,t,n?this.lastInclusiveDescendant(t):t,n?St.PRECEDING:St.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let i=r.getCachedIndex(n);if(i>=0)return i;i=0;let o=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);o=s.nextSibling,i=s.getCachedIndex(n)+1}for(;o;){let s=this._node(o);if(s.setCachedIndex(n,i),o===t)break;++i,o=s.nextSibling}return n.childIndexCachedUpTo=t,i}childrenCount(t){let r=this._node(t);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(t,r){if(t===r)return 0;let n=[];{let c=t;for(;c;){if(c===r)return Sr.CONTAINS|Sr.PRECEDING;n.push(c),c=this.parent(c)}}let i=[];{let c=r;for(;c;){if(c===t)return Sr.CONTAINED_BY|Sr.FOLLOWING;i.push(c),c=this.parent(c)}}let o=Zn(n,0);if(!o||o!==Zn(i,0))return Sr.DISCONNECTED;let s=0,a=Math.min(n.length,i.length);for(let c=0;c<a;++c){let f=Zn(n,c),p=Zn(i,c);if(f!==p)break;s=c}let l=this.index(Zn(n,s+1));return this.index(Zn(i,s+1))<l?Sr.PRECEDING:Sr.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),i=this._node(r.previousSibling),o=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),i&&(i.nextSibling=r.nextSibling),o&&(o.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),t}insertBefore(t,r){let n=this._node(t),i=this._node(n.previousSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=n.previousSibling,o.nextSibling=t,n.previousSibling=r,i&&(i.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),i=this._node(n.nextSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=t,o.nextSibling=n.nextSibling,n.nextSibling=r,i&&(i.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};_d.exports=da;da.TreePosition=Sr});var Rd=z((Xn,Kn)=>{(function(e){var t=typeof Xn=="object"&&Xn&&!Xn.nodeType&&Xn,r=typeof Kn=="object"&&Kn&&!Kn.nodeType&&Kn,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(e=n);var i,o=2147483647,s=36,a=1,l=26,u=38,c=700,f=72,p=128,h="-",m=/^xn--/,b=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=s-a,w=Math.floor,F=String.fromCharCode,H;function E(P){throw new RangeError(v[P])}function R(P,j){for(var d=P.length,G=[];d--;)G[d]=j(P[d]);return G}function W(P,j){var d=P.split("@"),G="";d.length>1&&(G=d[0]+"@",P=d[1]),P=P.replace(x,".");var Z=P.split("."),y=R(Z,j).join(".");return G+y}function $(P){for(var j=[],d=0,G=P.length,Z,y;d<G;)Z=P.charCodeAt(d++),Z>=55296&&Z<=56319&&d<G?(y=P.charCodeAt(d++),(y&64512)==56320?j.push(((Z&1023)<<10)+(y&1023)+65536):(j.push(Z),d--)):j.push(Z);return j}function A(P){return R(P,function(j){var d="";return j>65535&&(j-=65536,d+=F(j>>>10&1023|55296),j=56320|j&1023),d+=F(j),d}).join("")}function ae(P){return P-48<10?P-22:P-65<26?P-65:P-97<26?P-97:s}function B(P,j){return P+22+75*(P<26)-((j!=0)<<5)}function _(P,j,d){var G=0;for(P=d?w(P/c):P>>1,P+=w(P/j);P>C*l>>1;G+=s)P=w(P/C);return w(G+(C+1)*P/(P+u))}function I(P){var j=[],d=P.length,G,Z=0,y=p,re=f,ce,ke,k,g,S,T,M,Y,pe;for(ce=P.lastIndexOf(h),ce<0&&(ce=0),ke=0;ke<ce;++ke)P.charCodeAt(ke)>=128&&E("not-basic"),j.push(P.charCodeAt(ke));for(k=ce>0?ce+1:0;k<d;){for(g=Z,S=1,T=s;k>=d&&E("invalid-input"),M=ae(P.charCodeAt(k++)),(M>=s||M>w((o-Z)/S))&&E("overflow"),Z+=M*S,Y=T<=re?a:T>=re+l?l:T-re,!(M<Y);T+=s)pe=s-Y,S>w(o/pe)&&E("overflow"),S*=pe;G=j.length+1,re=_(Z-g,G,g==0),w(Z/G)>o-y&&E("overflow"),y+=w(Z/G),Z%=G,j.splice(Z++,0,y)}return A(j)}function D(P){var j,d,G,Z,y,re,ce,ke,k,g,S,T=[],M,Y,pe,he;for(P=$(P),M=P.length,j=p,d=0,y=f,re=0;re<M;++re)S=P[re],S<128&&T.push(F(S));for(G=Z=T.length,Z&&T.push(h);G<M;){for(ce=o,re=0;re<M;++re)S=P[re],S>=j&&S<ce&&(ce=S);for(Y=G+1,ce-j>w((o-d)/Y)&&E("overflow"),d+=(ce-j)*Y,j=ce,re=0;re<M;++re)if(S=P[re],S<j&&++d>o&&E("overflow"),S==j){for(ke=d,k=s;g=k<=y?a:k>=y+l?l:k-y,!(ke<g);k+=s)he=ke-g,pe=s-g,T.push(F(B(g+he%pe,0))),ke=w(he/pe);T.push(F(B(ke,0))),y=_(d,Y,G==Z),d=0,++G}++d,++j}return T.join("")}function N(P){return W(P,function(j){return m.test(j)?I(j.slice(4).toLowerCase()):j})}function V(P){return W(P,function(j){return b.test(j)?"xn--"+D(j):j})}if(i={version:"1.4.1",ucs2:{decode:$,encode:A},decode:I,encode:D,toASCII:V,toUnicode:N},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(Kn.exports==t)r.exports=i;else for(H in i)i.hasOwnProperty(H)&&(t[H]=i[H]);else e.punycode=i})(Xn)});var Bd=z((yq,Ld)=>{"use strict";Ld.exports=Error});var jd=z((xq,$d)=>{"use strict";$d.exports=EvalError});var zd=z((bq,Ud)=>{"use strict";Ud.exports=RangeError});var Hd=z((vq,qd)=>{"use strict";qd.exports=ReferenceError});var kc=z((wq,Wd)=>{"use strict";Wd.exports=SyntaxError});var ei=z((Sq,Vd)=>{"use strict";Vd.exports=TypeError});var Gd=z((kq,Yd)=>{"use strict";Yd.exports=URIError});var Qd=z((Aq,Jd)=>{"use strict";Jd.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var Kd=z((Eq,Xd)=>{"use strict";var Zd=typeof Symbol<"u"&&Symbol,JA=Qd();Xd.exports=function(){return typeof Zd!="function"||typeof Symbol!="function"||typeof Zd("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:JA()}});var tg=z((Tq,eg)=>{"use strict";var Ac={__proto__:null,foo:{}},QA=Object;eg.exports=function(){return{__proto__:Ac}.foo===Ac.foo&&!(Ac instanceof QA)}});var ig=z((Cq,ng)=>{"use strict";var ZA="Function.prototype.bind called on incompatible ",XA=Object.prototype.toString,KA=Math.max,eE="[object Function]",rg=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},tE=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},rE=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};ng.exports=function(t){var r=this;if(typeof r!="function"||XA.apply(r)!==eE)throw new TypeError(ZA+r);for(var n=tE(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,rg(n,arguments));return Object(c)===c?c:this}return r.apply(t,rg(n,arguments))},s=KA(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+rE(a,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var ya=z((_q,og)=>{"use strict";var nE=ig();og.exports=Function.prototype.bind||nE});var ag=z((Iq,sg)=>{"use strict";var iE=Function.prototype.call,oE=Object.prototype.hasOwnProperty,sE=ya();sg.exports=sE.call(iE,oE)});var fn=z((Oq,pg)=>{"use strict";var ue,aE=Bd(),lE=jd(),uE=zd(),cE=Hd(),ii=kc(),ni=ei(),fE=Gd(),fg=Function,Ec=function(e){try{return fg('"use strict"; return ('+e+").constructor;")()}catch{}},un=Object.getOwnPropertyDescriptor;if(un)try{un({},"")}catch{un=null}var Tc=function(){throw new ni},pE=un?function(){try{return arguments.callee,Tc}catch{try{return un(arguments,"callee").get}catch{return Tc}}}():Tc,ti=Kd()(),hE=tg()(),We=Object.getPrototypeOf||(hE?function(e){return e.__proto__}:null),ri={},mE=typeof Uint8Array>"u"||!We?ue:We(Uint8Array),cn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ue:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ue:ArrayBuffer,"%ArrayIteratorPrototype%":ti&&We?We([][Symbol.iterator]()):ue,"%AsyncFromSyncIteratorPrototype%":ue,"%AsyncFunction%":ri,"%AsyncGenerator%":ri,"%AsyncGeneratorFunction%":ri,"%AsyncIteratorPrototype%":ri,"%Atomics%":typeof Atomics>"u"?ue:Atomics,"%BigInt%":typeof BigInt>"u"?ue:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ue:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ue:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ue:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":aE,"%eval%":eval,"%EvalError%":lE,"%Float32Array%":typeof Float32Array>"u"?ue:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ue:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ue:FinalizationRegistry,"%Function%":fg,"%GeneratorFunction%":ri,"%Int8Array%":typeof Int8Array>"u"?ue:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ue:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ue:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ti&&We?We(We([][Symbol.iterator]())):ue,"%JSON%":typeof JSON=="object"?JSON:ue,"%Map%":typeof Map>"u"?ue:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ti||!We?ue:We(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ue:Promise,"%Proxy%":typeof Proxy>"u"?ue:Proxy,"%RangeError%":uE,"%ReferenceError%":cE,"%Reflect%":typeof Reflect>"u"?ue:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ue:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ti||!We?ue:We(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ue:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ti&&We?We(""[Symbol.iterator]()):ue,"%Symbol%":ti?Symbol:ue,"%SyntaxError%":ii,"%ThrowTypeError%":pE,"%TypedArray%":mE,"%TypeError%":ni,"%Uint8Array%":typeof Uint8Array>"u"?ue:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ue:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ue:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ue:Uint32Array,"%URIError%":fE,"%WeakMap%":typeof WeakMap>"u"?ue:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ue:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ue:WeakSet};if(We)try{null.error}catch(e){lg=We(We(e)),cn["%Error.prototype%"]=lg}var lg,dE=function e(t){var r;if(t==="%AsyncFunction%")r=Ec("async function () {}");else if(t==="%GeneratorFunction%")r=Ec("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ec("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&We&&(r=We(i.prototype))}return cn[t]=r,r},ug={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Co=ya(),xa=ag(),gE=Co.call(Function.call,Array.prototype.concat),yE=Co.call(Function.apply,Array.prototype.splice),cg=Co.call(Function.call,String.prototype.replace),ba=Co.call(Function.call,String.prototype.slice),xE=Co.call(Function.call,RegExp.prototype.exec),bE=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vE=/\\(\\)?/g,wE=function(t){var r=ba(t,0,1),n=ba(t,-1);if(r==="%"&&n!=="%")throw new ii("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ii("invalid intrinsic syntax, expected opening `%`");var i=[];return cg(t,bE,function(o,s,a,l){i[i.length]=a?cg(l,vE,"$1"):s||o}),i},SE=function(t,r){var n=t,i;if(xa(ug,n)&&(i=ug[n],n="%"+i[0]+"%"),xa(cn,n)){var o=cn[n];if(o===ri&&(o=dE(n)),typeof o>"u"&&!r)throw new ni("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new ii("intrinsic "+t+" does not exist!")};pg.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new ni("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ni('"allowMissing" argument must be a boolean');if(xE(/^%?[^%]*%?$/,t)===null)throw new ii("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=wE(t),i=n.length>0?n[0]:"",o=SE("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],yE(n,gE([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=ba(p,0,1),m=ba(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new ii("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),i+="."+p,s="%"+i+"%",xa(cn,s))a=cn[s];else if(a!=null){if(!(p in a)){if(!r)throw new ni("base intrinsic for "+t+" exists, but the property is not available.");return}if(un&&c+1>=n.length){var b=un(a,p);f=!!b,f&&"get"in b&&!("originalValue"in b.get)?a=b.get:a=a[p]}else f=xa(a,p),a=a[p];f&&!l&&(cn[s]=a)}}return a}});var wa=z((Mq,hg)=>{"use strict";var kE=fn(),va=kE("%Object.defineProperty%",!0)||!1;if(va)try{va({},"a",{value:1})}catch{va=!1}hg.exports=va});var Cc=z((Pq,mg)=>{"use strict";var AE=fn(),Sa=AE("%Object.getOwnPropertyDescriptor%",!0);if(Sa)try{Sa([],"length")}catch{Sa=null}mg.exports=Sa});var xg=z((Dq,yg)=>{"use strict";var dg=wa(),EE=kc(),oi=ei(),gg=Cc();yg.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new oi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new oi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new oi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new oi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new oi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new oi("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!gg&&gg(t,r);if(dg)dg(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)t[r]=n;else throw new EE("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var wg=z((Fq,vg)=>{"use strict";var _c=wa(),bg=function(){return!!_c};bg.hasArrayLengthDefineBug=function(){if(!_c)return null;try{return _c([],"length",{value:1}).length!==1}catch{return!0}};vg.exports=bg});var Tg=z((Nq,Eg)=>{"use strict";var TE=fn(),Sg=xg(),CE=wg()(),kg=Cc(),Ag=ei(),_E=TE("%Math.floor%");Eg.exports=function(t,r){if(typeof t!="function")throw new Ag("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||_E(r)!==r)throw new Ag("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&kg){var s=kg(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(CE?Sg(t,"length",r,!0,!0):Sg(t,"length",r)),t}});var Pg=z((Rq,ka)=>{"use strict";var Ic=ya(),Aa=fn(),IE=Tg(),OE=ei(),Ig=Aa("%Function.prototype.apply%"),Og=Aa("%Function.prototype.call%"),Mg=Aa("%Reflect.apply%",!0)||Ic.call(Og,Ig),Cg=wa(),ME=Aa("%Math.max%");ka.exports=function(t){if(typeof t!="function")throw new OE("a function is required");var r=Mg(Ic,Og,arguments);return IE(r,1+ME(0,t.length-(arguments.length-1)),!0)};var _g=function(){return Mg(Ic,Ig,arguments)};Cg?Cg(ka.exports,"apply",{value:_g}):ka.exports.apply=_g});var Rg=z((Lq,Ng)=>{"use strict";var Dg=fn(),Fg=Pg(),PE=Fg(Dg("String.prototype.indexOf"));Ng.exports=function(t,r){var n=Dg(t,!!r);return typeof n=="function"&&PE(t,".prototype.")>-1?Fg(n):n}});var Lg=z(()=>{});var ny=z((jq,ry)=>{var $c=typeof Map=="function"&&Map.prototype,Oc=Object.getOwnPropertyDescriptor&&$c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ta=$c&&Oc&&typeof Oc.get=="function"?Oc.get:null,Bg=$c&&Map.prototype.forEach,jc=typeof Set=="function"&&Set.prototype,Mc=Object.getOwnPropertyDescriptor&&jc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ca=jc&&Mc&&typeof Mc.get=="function"?Mc.get:null,$g=jc&&Set.prototype.forEach,DE=typeof WeakMap=="function"&&WeakMap.prototype,Io=DE?WeakMap.prototype.has:null,FE=typeof WeakSet=="function"&&WeakSet.prototype,Oo=FE?WeakSet.prototype.has:null,NE=typeof WeakRef=="function"&&WeakRef.prototype,jg=NE?WeakRef.prototype.deref:null,RE=Boolean.prototype.valueOf,LE=Object.prototype.toString,BE=Function.prototype.toString,$E=String.prototype.match,Uc=String.prototype.slice,Er=String.prototype.replace,jE=String.prototype.toUpperCase,Ug=String.prototype.toLowerCase,Qg=RegExp.prototype.test,zg=Array.prototype.concat,Lt=Array.prototype.join,UE=Array.prototype.slice,qg=Math.floor,Fc=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Pc=Object.getOwnPropertySymbols,Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,si=typeof Symbol=="function"&&typeof Symbol.iterator=="object",et=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===si||!0)?Symbol.toStringTag:null,Zg=Object.prototype.propertyIsEnumerable,Hg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Wg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Qg.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-qg(-e):qg(e);if(n!==e){var i=String(n),o=Uc.call(t,i.length+1);return Er.call(i,r,"$&_")+"."+Er.call(Er.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Er.call(t,r,"$&_")}var Rc=Lg(),Vg=Rc.custom,Yg=Kg(Vg)?Vg:null;ry.exports=function e(t,r,n,i){var o=r||{};if(Ar(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ar(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ar(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ar(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ar(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ty(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?Wg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?Wg(t,u):u}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Lc(t)?"[Array]":"[Object]";var f=oT(o,n);if(typeof i>"u")i=[];else if(ey(i,t)>=0)return"[Circular]";function p(_,I,D){if(I&&(i=UE.call(i),i.push(I)),D){var N={depth:o.depth};return Ar(o,"quoteStyle")&&(N.quoteStyle=o.quoteStyle),e(_,N,n+1,i)}return e(_,o,n+1,i)}if(typeof t=="function"&&!Gg(t)){var h=QE(t),m=Ea(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Lt.call(m,", ")+" }":"")}if(Kg(t)){var b=si?Er.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Nc.call(t);return typeof t=="object"&&!si?_o(b):b}if(rT(t)){for(var x="<"+Ug.call(String(t.nodeName)),v=t.attributes||[],C=0;C<v.length;C++)x+=" "+v[C].name+"="+Xg(zE(v[C].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+Ug.call(String(t.nodeName))+">",x}if(Lc(t)){if(t.length===0)return"[]";var w=Ea(t,p);return f&&!iT(w)?"["+Bc(w,f)+"]":"[ "+Lt.call(w,", ")+" ]"}if(HE(t)){var F=Ea(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Zg.call(t,"cause")?"{ ["+String(t)+"] "+Lt.call(zg.call("[cause]: "+p(t.cause),F),", ")+" }":F.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Lt.call(F,", ")+" }"}if(typeof t=="object"&&s){if(Yg&&typeof t[Yg]=="function"&&Rc)return Rc(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ZE(t)){var H=[];return Bg&&Bg.call(t,function(_,I){H.push(p(I,t,!0)+" => "+p(_,t))}),Jg("Map",Ta.call(t),H,f)}if(eT(t)){var E=[];return $g&&$g.call(t,function(_){E.push(p(_,t))}),Jg("Set",Ca.call(t),E,f)}if(XE(t))return Dc("WeakMap");if(tT(t))return Dc("WeakSet");if(KE(t))return Dc("WeakRef");if(VE(t))return _o(p(Number(t)));if(GE(t))return _o(p(Fc.call(t)));if(YE(t))return _o(RE.call(t));if(WE(t))return _o(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!qE(t)&&!Gg(t)){var R=Ea(t,p),W=Hg?Hg(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",A=!W&&et&&Object(t)===t&&et in t?Uc.call(Tr(t),8,-1):$?"Object":"",ae=W||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=ae+(A||$?"["+Lt.call(zg.call([],A||[],$||[]),": ")+"] ":"");return R.length===0?B+"{}":f?B+"{"+Bc(R,f)+"}":B+"{ "+Lt.call(R,", ")+" }"}return String(t)};function Xg(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function zE(e){return Er.call(String(e),/"/g,""")}function Lc(e){return Tr(e)==="[object Array]"&&(!et||!(typeof e=="object"&&et in e))}function qE(e){return Tr(e)==="[object Date]"&&(!et||!(typeof e=="object"&&et in e))}function Gg(e){return Tr(e)==="[object RegExp]"&&(!et||!(typeof e=="object"&&et in e))}function HE(e){return Tr(e)==="[object Error]"&&(!et||!(typeof e=="object"&&et in e))}function WE(e){return Tr(e)==="[object String]"&&(!et||!(typeof e=="object"&&et in e))}function VE(e){return Tr(e)==="[object Number]"&&(!et||!(typeof e=="object"&&et in e))}function YE(e){return Tr(e)==="[object Boolean]"&&(!et||!(typeof e=="object"&&et in e))}function Kg(e){if(si)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Nc)return!1;try{return Nc.call(e),!0}catch{}return!1}function GE(e){if(!e||typeof e!="object"||!Fc)return!1;try{return Fc.call(e),!0}catch{}return!1}var JE=Object.prototype.hasOwnProperty||function(e){return e in this};function Ar(e,t){return JE.call(e,t)}function Tr(e){return LE.call(e)}function QE(e){if(e.name)return e.name;var t=$E.call(BE.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ey(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ZE(e){if(!Ta||!e||typeof e!="object")return!1;try{Ta.call(e);try{Ca.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function XE(e){if(!Io||!e||typeof e!="object")return!1;try{Io.call(e,Io);try{Oo.call(e,Oo)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function KE(e){if(!jg||!e||typeof e!="object")return!1;try{return jg.call(e),!0}catch{}return!1}function eT(e){if(!Ca||!e||typeof e!="object")return!1;try{Ca.call(e);try{Ta.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function tT(e){if(!Oo||!e||typeof e!="object")return!1;try{Oo.call(e,Oo);try{Io.call(e,Io)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function rT(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ty(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ty(Uc.call(e,0,t.maxStringLength),t)+n}var i=Er.call(Er.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,nT);return Xg(i,"single",t)}function nT(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+jE.call(t.toString(16))}function _o(e){return"Object("+e+")"}function Dc(e){return e+" { ? }"}function Jg(e,t,r,n){var i=n?Bc(r,n):Lt.call(r,", ");return e+" ("+t+") {"+i+"}"}function iT(e){for(var t=0;t<e.length;t++)if(ey(e[t],`
|
|
2
|
+
`)>=0)return!1;return!0}function oT(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Lt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Lt.call(Array(t+1),r)}}function Bc(e,t){if(e.length===0)return"";var r=`
|
|
3
|
+
`+t.prev+t.base;return r+Lt.call(e,","+r)+`
|
|
4
|
+
`+t.prev}function Ea(e,t){var r=Lc(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Ar(e,i)?t(e[i],e):""}var o=typeof Pc=="function"?Pc(e):[],s;if(si){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)Ar(e,l)&&(r&&String(Number(l))===l&&l<e.length||si&&s["$"+l]instanceof Symbol||(Qg.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof Pc=="function")for(var u=0;u<o.length;u++)Zg.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}});var sy=z((Uq,oy)=>{"use strict";var iy=fn(),ai=Rg(),sT=ny(),aT=ei(),_a=iy("%WeakMap%",!0),Ia=iy("%Map%",!0),lT=ai("WeakMap.prototype.get",!0),uT=ai("WeakMap.prototype.set",!0),cT=ai("WeakMap.prototype.has",!0),fT=ai("Map.prototype.get",!0),pT=ai("Map.prototype.set",!0),hT=ai("Map.prototype.has",!0),zc=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},mT=function(e,t){var r=zc(e,t);return r&&r.value},dT=function(e,t,r){var n=zc(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},gT=function(e,t){return!!zc(e,t)};oy.exports=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new aT("Side channel does not contain "+sT(o))},get:function(o){if(_a&&o&&(typeof o=="object"||typeof o=="function")){if(t)return lT(t,o)}else if(Ia){if(r)return fT(r,o)}else if(n)return mT(n,o)},has:function(o){if(_a&&o&&(typeof o=="object"||typeof o=="function")){if(t)return cT(t,o)}else if(Ia){if(r)return hT(r,o)}else if(n)return gT(n,o);return!1},set:function(o,s){_a&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new _a),uT(t,o,s)):Ia?(r||(r=new Ia),pT(r,o,s)):(n||(n={key:{},next:null}),dT(n,o,s))}};return i}});var Oa=z((zq,ay)=>{"use strict";var yT=String.prototype.replace,xT=/%20/g,qc={RFC1738:"RFC1738",RFC3986:"RFC3986"};ay.exports={default:qc.RFC3986,formatters:{RFC1738:function(e){return yT.call(e,xT,"+")},RFC3986:function(e){return String(e)}},RFC1738:qc.RFC1738,RFC3986:qc.RFC3986}});var Vc=z((qq,uy)=>{"use strict";var bT=Oa(),Hc=Object.prototype.hasOwnProperty,pn=Array.isArray,Bt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),vT=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(pn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},ly=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},wT=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(pn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Hc.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return pn(t)&&!pn(r)&&(i=ly(t,n)),pn(t)&&pn(r)?(r.forEach(function(o,s){if(Hc.call(t,s)){var a=t[s];a&&typeof a=="object"&&o&&typeof o=="object"?t[s]=e(a,o,n):t.push(o)}else t[s]=o}),t):Object.keys(r).reduce(function(o,s){var a=r[s];return Hc.call(o,s)?o[s]=e(o[s],a,n):o[s]=a,o},i)},ST=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},kT=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Wc=1024,AT=function(t,r,n,i,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=Wc){for(var u=s.length>=Wc?s.slice(l,l+Wc):s,c=[],f=0;f<u.length;++f){var p=u.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===bT.RFC1738&&(p===40||p===41)){c[c.length]=u.charAt(f);continue}if(p<128){c[c.length]=Bt[p];continue}if(p<2048){c[c.length]=Bt[192|p>>6]+Bt[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=Bt[224|p>>12]+Bt[128|p>>6&63]+Bt[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=Bt[240|p>>18]+Bt[128|p>>12&63]+Bt[128|p>>6&63]+Bt[128|p&63]}a+=c.join("")}return a},ET=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var u=a[l],c=s[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:u}),n.push(c))}return vT(r),t},TT=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},CT=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},_T=function(t,r){return[].concat(t,r)},IT=function(t,r){if(pn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};uy.exports={arrayToObject:ly,assign:ST,combine:_T,compact:ET,decode:kT,encode:AT,isBuffer:CT,isRegExp:TT,maybeMap:IT,merge:wT}});var dy=z((Hq,my)=>{"use strict";var fy=sy(),Ma=Vc(),Mo=Oa(),OT=Object.prototype.hasOwnProperty,py={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},$t=Array.isArray,MT=Array.prototype.push,hy=function(e,t){MT.apply(e,$t(t)?t:[t])},PT=Date.prototype.toISOString,cy=Mo.default,Ue={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ma.encode,encodeValuesOnly:!1,format:cy,formatter:Mo.formatters[cy],indices:!1,serializeDate:function(t){return PT.call(t)},skipNulls:!1,strictNullHandling:!1},DT=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Yc={},FT=function e(t,r,n,i,o,s,a,l,u,c,f,p,h,m,b,x,v,C){for(var w=t,F=C,H=0,E=!1;(F=F.get(Yc))!==void 0&&!E;){var R=F.get(t);if(H+=1,typeof R<"u"){if(R===H)throw new RangeError("Cyclic object value");E=!0}typeof F.get(Yc)>"u"&&(H=0)}if(typeof c=="function"?w=c(r,w):w instanceof Date?w=h(w):n==="comma"&&$t(w)&&(w=Ma.maybeMap(w,function(d){return d instanceof Date?h(d):d})),w===null){if(s)return u&&!x?u(r,Ue.encoder,v,"key",m):r;w=""}if(DT(w)||Ma.isBuffer(w)){if(u){var W=x?r:u(r,Ue.encoder,v,"key",m);return[b(W)+"="+b(u(w,Ue.encoder,v,"value",m))]}return[b(r)+"="+b(String(w))]}var $=[];if(typeof w>"u")return $;var A;if(n==="comma"&&$t(w))x&&u&&(w=Ma.maybeMap(w,u)),A=[{value:w.length>0?w.join(",")||null:void 0}];else if($t(c))A=c;else{var ae=Object.keys(w);A=f?ae.sort(f):ae}var B=l?r.replace(/\./g,"%2E"):r,_=i&&$t(w)&&w.length===1?B+"[]":B;if(o&&$t(w)&&w.length===0)return _+"[]";for(var I=0;I<A.length;++I){var D=A[I],N=typeof D=="object"&&typeof D.value<"u"?D.value:w[D];if(!(a&&N===null)){var V=p&&l?D.replace(/\./g,"%2E"):D,P=$t(w)?typeof n=="function"?n(_,V):_:_+(p?"."+V:"["+V+"]");C.set(t,H);var j=fy();j.set(Yc,C),hy($,e(N,P,n,i,o,s,a,l,n==="comma"&&x&&$t(w)?null:u,c,f,p,h,m,b,x,v,j))}}return $},NT=function(t){if(!t)return Ue;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Ue.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Mo.default;if(typeof t.format<"u"){if(!OT.call(Mo.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=Mo.formatters[n],o=Ue.filter;(typeof t.filter=="function"||$t(t.filter))&&(o=t.filter);var s;if(t.arrayFormat in py?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=Ue.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Ue.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ue.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ue.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ue.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ue.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ue.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ue.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ue.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ue.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ue.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ue.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ue.strictNullHandling}};my.exports=function(e,t){var r=e,n=NT(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):$t(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=py[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=fy(),c=0;c<i.length;++c){var f=i[c];n.skipNulls&&r[f]===null||hy(s,FT(r[f],f,a,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var p=s.join(n.delimiter),h=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),p.length>0?h+p:""}});var xy=z((Wq,yy)=>{"use strict";var li=Vc(),Gc=Object.prototype.hasOwnProperty,RT=Array.isArray,Oe={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:li.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},LT=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},gy=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},BT="utf8=%26%2310003%3B",$T="utf8=%E2%9C%93",jT=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,o),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===$T?u="utf-8":s[l]===BT&&(u="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var c=s[l],f=c.indexOf("]="),p=f===-1?c.indexOf("="):f+1,h,m;p===-1?(h=r.decoder(c,Oe.decoder,u,"key"),m=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,p),Oe.decoder,u,"key"),m=li.maybeMap(gy(c.slice(p+1),r),function(x){return r.decoder(x,Oe.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=LT(m)),c.indexOf("[]=")>-1&&(m=RT(m)?[m]:m);var b=Gc.call(n,h);b&&r.duplicates==="combine"?n[h]=li.combine(n[h],m):(!b||r.duplicates==="last")&&(n[h]=m)}return n},UT=function(e,t,r,n){for(var i=n?t:gy(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&i===""?[]:[].concat(i);else{s=r.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:i}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=i):u!=="__proto__"&&(s[u]=i)}i=s}return i},zT=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&Gc.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=a.exec(o))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Gc.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+o.slice(l.index)+"]"),UT(c,r,n,i)}},qT=function(t){if(!t)return Oe;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Oe.charset:t.charset,n=typeof t.duplicates>"u"?Oe.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Oe.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Oe.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Oe.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Oe.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Oe.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Oe.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Oe.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Oe.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Oe.decoder,delimiter:typeof t.delimiter=="string"||li.isRegExp(t.delimiter)?t.delimiter:Oe.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Oe.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Oe.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Oe.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Oe.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Oe.strictNullHandling}};yy.exports=function(e,t){var r=qT(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?jT(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],l=zT(a,n[a],r,typeof e=="string");i=li.merge(i,l,r)}return r.allowSparse===!0?i:li.compact(i)}});var vy=z((Vq,by)=>{"use strict";var HT=dy(),WT=xy(),VT=Oa();by.exports={formats:VT,parse:WT,stringify:HT}});var Ay=z(ci=>{"use strict";var YT=Rd();function kt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var GT=/^([a-z0-9.+-]+:)/i,JT=/:[0-9]*$/,QT=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,ZT=["<",">",'"',"`"," ","\r",`
|
|
5
|
+
`," "],XT=["{","}","|","\\","^","`"].concat(ZT),Jc=["'"].concat(XT),wy=["%","/","?",";","#"].concat(Jc),Sy=["/","?","#"],KT=255,ky=/^[+a-z0-9A-Z_-]{0,63}$/,eC=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,tC={javascript:!0,"javascript:":!0},Qc={javascript:!0,"javascript:":!0},ui={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Zc=vy();function Po(e,t,r){if(e&&typeof e=="object"&&e instanceof kt)return e;var n=new kt;return n.parse(e,t,r),n}kt.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!r&&e.split("#").length===1){var l=QT.exec(a);if(l)return this.path=a,this.href=a,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Zc.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=GT.exec(a);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(u&&Qc[u])&&(a=a.substr(2),this.slashes=!0)}if(!Qc[u]&&(f||u&&!ui[u])){for(var p=-1,h=0;h<Sy.length;h++){var m=a.indexOf(Sy[h]);m!==-1&&(p===-1||m<p)&&(p=m)}var b,x;p===-1?x=a.lastIndexOf("@"):x=a.lastIndexOf("@",p),x!==-1&&(b=a.slice(0,x),a=a.slice(x+1),this.auth=decodeURIComponent(b)),p=-1;for(var h=0;h<wy.length;h++){var m=a.indexOf(wy[h]);m!==-1&&(p===-1||m<p)&&(p=m)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v)for(var C=this.hostname.split(/\./),h=0,w=C.length;h<w;h++){var F=C[h];if(F&&!F.match(ky)){for(var H="",E=0,R=F.length;E<R;E++)F.charCodeAt(E)>127?H+="x":H+=F[E];if(!H.match(ky)){var W=C.slice(0,h),$=C.slice(h+1),A=F.match(eC);A&&(W.push(A[1]),$.unshift(A[2])),$.length&&(a="/"+$.join(".")+a),this.hostname=W.join(".");break}}}this.hostname.length>KT?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=YT.toASCII(this.hostname));var ae=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+ae,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!tC[c])for(var h=0,w=Jc.length;h<w;h++){var _=Jc[h];if(a.indexOf(_)!==-1){var I=encodeURIComponent(_);I===_&&(I=escape(_)),a=a.split(_).join(I)}}var D=a.indexOf("#");D!==-1&&(this.hash=a.substr(D),a=a.slice(0,D));var N=a.indexOf("?");if(N!==-1?(this.search=a.substr(N),this.query=a.substr(N+1),t&&(this.query=Zc.parse(this.query)),a=a.slice(0,N)):t&&(this.search="",this.query={}),a&&(this.pathname=a),ui[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ae=this.pathname||"",V=this.search||"";this.path=ae+V}return this.href=this.format(),this};function rC(e){return typeof e=="string"&&(e=Po(e)),e instanceof kt?e.format():kt.prototype.format.call(e)}kt.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Zc.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||ui[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),t+i+r+s+n};function nC(e,t){return Po(e,!1,!0).resolve(t)}kt.prototype.resolve=function(e){return this.resolveObject(Po(e,!1,!0)).format()};function iC(e,t){return e?Po(e,!1,!0).resolveObject(t):t}kt.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new kt;t.parse(e,!1,!0),e=t}for(var r=new kt,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var l=s[a];l!=="protocol"&&(r[l]=e[l])}return ui[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!ui[e.protocol]){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!Qc[e.protocol]){for(var w=(e.pathname||"").split("/");w.length&&!(e.host=w.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),w[0]!==""&&w.unshift(""),w.length<2&&w.unshift(""),r.pathname=w.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",h=r.search||"";r.path=p+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",b=e.host||e.pathname&&e.pathname.charAt(0)==="/",x=b||m||r.host&&e.pathname,v=x,C=r.pathname&&r.pathname.split("/")||[],w=e.pathname&&e.pathname.split("/")||[],F=r.protocol&&!ui[r.protocol];if(F&&(r.hostname="",r.port=null,r.host&&(C[0]===""?C[0]=r.host:C.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(w[0]===""?w[0]=e.host:w.unshift(e.host)),e.host=null),x=x&&(w[0]===""||C[0]==="")),b)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,C=w;else if(w.length)C||(C=[]),C.pop(),C=C.concat(w),r.search=e.search,r.query=e.query;else if(e.search!=null){if(F){r.host=C.shift(),r.hostname=r.host;var H=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;H&&(r.auth=H.shift(),r.hostname=H.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!C.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=C.slice(-1)[0],R=(r.host||e.host||C.length>1)&&(E==="."||E==="..")||E==="",W=0,$=C.length;$>=0;$--)E=C[$],E==="."?C.splice($,1):E===".."?(C.splice($,1),W++):W&&(C.splice($,1),W--);if(!x&&!v)for(;W--;W)C.unshift("..");x&&C[0]!==""&&(!C[0]||C[0].charAt(0)!=="/")&&C.unshift(""),R&&C.join("/").substr(-1)!=="/"&&C.push("");var A=C[0]===""||C[0]&&C[0].charAt(0)==="/";if(F){r.hostname=A?"":C.length?C.shift():"",r.host=r.hostname;var H=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;H&&(r.auth=H.shift(),r.hostname=H.shift(),r.host=r.hostname)}return x=x||r.host&&C.length,x&&!A&&C.unshift(""),C.length>0?r.pathname=C.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r};kt.prototype.parseHost=function(){var e=this.host,t=JT.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};ci.parse=Po;ci.resolve=nC;ci.resolveObject=iC;ci.format=rC;ci.Url=kt});var Hy=z((Jq,qy)=>{"use strict";qy.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Yy=z((Zq,Vy)=>{"use strict";Vy.exports=function(t){var r=typeof t;if(r==="string"||t instanceof String){if(!t.trim())return!1}else if(r!=="number"&&!(t instanceof Number))return!1;return t-t+1>=0}});var Qy=z((Xq,Jy)=>{var dC=Object.prototype.toString;Jy.exports=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return vC(t)?"generatorfunction":"function";if(gC(t))return"array";if(kC(t))return"buffer";if(SC(t))return"arguments";if(xC(t))return"date";if(yC(t))return"error";if(bC(t))return"regexp";switch(Gy(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(wC(t))return"generator";switch(r=dC.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Gy(e){return typeof e.constructor=="function"?e.constructor.name:null}function gC(e){return Array.isArray?Array.isArray(e):e instanceof Array}function yC(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function xC(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function bC(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function vC(e,t){return Gy(e)==="GeneratorFunction"}function wC(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function SC(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function kC(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var Xy=z((Kq,Zy)=>{Zy.exports=function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,n=r&&typeof r.getRandomValues=="function",i=t&&n;if(!i)return Math.random;var o=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(o),o[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var tx=z((e6,rf)=>{"use strict";var AC=Yy(),Ky=Qy(),ex=Xy();rf.exports=EC;rf.exports.isCrypto=!!ex.cryptographic;var jt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};jt.all=jt.lower+jt.upper+jt.number+jt.special;function EC(e,t,r){if(typeof e>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof e=="string"?t=e.length:AC(e)&&(r={},t=e,e="*")),Ky(t)==="object"&&t.hasOwnProperty("chars")&&(r=t,e=r.chars,t=e.length,n=!0);var i=r||{},o="",s="";if(e.indexOf("?")!==-1&&(o+=i.chars),e.indexOf("a")!==-1&&(o+=jt.lower),e.indexOf("A")!==-1&&(o+=jt.upper),e.indexOf("0")!==-1&&(o+=jt.number),e.indexOf("!")!==-1&&(o+=jt.special),e.indexOf("*")!==-1&&(o+=jt.all),n&&(o+=e),i.exclude){var a=Ky(i.exclude)==="string"?i.exclude:i.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),o=o.replace(new RegExp("["+a+"]+","g"),""),i.exclude.indexOf("]")!==-1&&(o=o.replace(new RegExp("[\\]]+","g"),""))}for(;t--;)s+=o.charAt(parseInt(ex()*o.length,10));return s}});var Yx=z((No,mi)=>{var LC=200,yx="__lodash_hash_undefined__",xx=9007199254740991,bf="[object Arguments]",BC="[object Array]",bx="[object Boolean]",vx="[object Date]",$C="[object Error]",vf="[object Function]",wx="[object GeneratorFunction]",$a="[object Map]",Sx="[object Number]",wf="[object Object]",sx="[object Promise]",kx="[object RegExp]",ja="[object Set]",Ax="[object String]",Ex="[object Symbol]",hf="[object WeakMap]",Tx="[object ArrayBuffer]",Ua="[object DataView]",Cx="[object Float32Array]",_x="[object Float64Array]",Ix="[object Int8Array]",Ox="[object Int16Array]",Mx="[object Int32Array]",Px="[object Uint8Array]",Dx="[object Uint8ClampedArray]",Fx="[object Uint16Array]",Nx="[object Uint32Array]",jC=/[\\^$.*+?()[\]{}|]/g,UC=/\w*$/,zC=/^\[object .+?Constructor\]$/,qC=/^(?:0|[1-9]\d*)$/,be={};be[bf]=be[BC]=be[Tx]=be[Ua]=be[bx]=be[vx]=be[Cx]=be[_x]=be[Ix]=be[Ox]=be[Mx]=be[$a]=be[Sx]=be[wf]=be[kx]=be[ja]=be[Ax]=be[Ex]=be[Px]=be[Dx]=be[Fx]=be[Nx]=!0;be[$C]=be[vf]=be[hf]=!1;var HC=typeof global=="object"&&global&&global.Object===Object&&global,WC=typeof self=="object"&&self&&self.Object===Object&&self,or=HC||WC||Function("return this")(),Rx=typeof No=="object"&&No&&!No.nodeType&&No,ax=Rx&&typeof mi=="object"&&mi&&!mi.nodeType&&mi,VC=ax&&ax.exports===Rx;function YC(e,t){return e.set(t[0],t[1]),e}function GC(e,t){return e.add(t),e}function JC(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function QC(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Lx(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function ZC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function XC(e,t){return e?.[t]}function Bx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function lx(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Sf(e,t){return function(r){return e(t(r))}}function ux(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var KC=Array.prototype,e_=Function.prototype,za=Object.prototype,pf=or["__core-js_shared__"],cx=function(){var e=/[^.]+$/.exec(pf&&pf.keys&&pf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$x=e_.toString,_r=za.hasOwnProperty,qa=za.toString,t_=RegExp("^"+$x.call(_r).replace(jC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fx=VC?or.Buffer:void 0,px=or.Symbol,hx=or.Uint8Array,r_=Sf(Object.getPrototypeOf,Object),n_=Object.create,i_=za.propertyIsEnumerable,o_=KC.splice,mx=Object.getOwnPropertySymbols,s_=fx?fx.isBuffer:void 0,a_=Sf(Object.keys,Object),mf=yi(or,"DataView"),Ro=yi(or,"Map"),df=yi(or,"Promise"),gf=yi(or,"Set"),yf=yi(or,"WeakMap"),Lo=yi(Object,"create"),l_=dn(mf),u_=dn(Ro),c_=dn(df),f_=dn(gf),p_=dn(yf),dx=px?px.prototype:void 0,gx=dx?dx.valueOf:void 0;function mn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function h_(){this.__data__=Lo?Lo(null):{}}function m_(e){return this.has(e)&&delete this.__data__[e]}function d_(e){var t=this.__data__;if(Lo){var r=t[e];return r===yx?void 0:r}return _r.call(t,e)?t[e]:void 0}function g_(e){var t=this.__data__;return Lo?t[e]!==void 0:_r.call(t,e)}function y_(e,t){var r=this.__data__;return r[e]=Lo&&t===void 0?yx:t,this}mn.prototype.clear=h_;mn.prototype.delete=m_;mn.prototype.get=d_;mn.prototype.has=g_;mn.prototype.set=y_;function sr(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function x_(){this.__data__=[]}function b_(e){var t=this.__data__,r=Ha(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():o_.call(t,r,1),!0}function v_(e){var t=this.__data__,r=Ha(t,e);return r<0?void 0:t[r][1]}function w_(e){return Ha(this.__data__,e)>-1}function S_(e,t){var r=this.__data__,n=Ha(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}sr.prototype.clear=x_;sr.prototype.delete=b_;sr.prototype.get=v_;sr.prototype.has=w_;sr.prototype.set=S_;function di(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function k_(){this.__data__={hash:new mn,map:new(Ro||sr),string:new mn}}function A_(e){return Wa(this,e).delete(e)}function E_(e){return Wa(this,e).get(e)}function T_(e){return Wa(this,e).has(e)}function C_(e,t){return Wa(this,e).set(e,t),this}di.prototype.clear=k_;di.prototype.delete=A_;di.prototype.get=E_;di.prototype.has=T_;di.prototype.set=C_;function gi(e){this.__data__=new sr(e)}function __(){this.__data__=new sr}function I_(e){return this.__data__.delete(e)}function O_(e){return this.__data__.get(e)}function M_(e){return this.__data__.has(e)}function P_(e,t){var r=this.__data__;if(r instanceof sr){var n=r.__data__;if(!Ro||n.length<LC-1)return n.push([e,t]),this;r=this.__data__=new di(n)}return r.set(e,t),this}gi.prototype.clear=__;gi.prototype.delete=I_;gi.prototype.get=O_;gi.prototype.has=M_;gi.prototype.set=P_;function D_(e,t){var r=Af(e)||nI(e)?ZC(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||_r.call(e,o))&&!(i&&(o=="length"||K_(o,n)))&&r.push(o);return r}function jx(e,t,r){var n=e[t];(!(_r.call(e,t)&&Hx(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Ha(e,t){for(var r=e.length;r--;)if(Hx(e[r][0],t))return r;return-1}function F_(e,t){return e&&Ux(t,Ef(t),e)}function xf(e,t,r,n,i,o,s){var a;if(n&&(a=o?n(e,i,o,s):n(e)),a!==void 0)return a;if(!Va(e))return e;var l=Af(e);if(l){if(a=Q_(e),!t)return Y_(e,a)}else{var u=hn(e),c=u==vf||u==wx;if(oI(e))return j_(e,t);if(u==wf||u==bf||c&&!o){if(Bx(e))return o?e:{};if(a=Z_(c?{}:e),!t)return G_(e,F_(a,e))}else{if(!be[u])return o?e:{};a=X_(e,u,xf,t)}}s||(s=new gi);var f=s.get(e);if(f)return f;if(s.set(e,a),!l)var p=r?J_(e):Ef(e);return JC(p||e,function(h,m){p&&(m=h,h=e[m]),jx(a,m,xf(h,t,r,n,m,e,s))}),a}function N_(e){return Va(e)?n_(e):{}}function R_(e,t,r){var n=t(e);return Af(e)?n:QC(n,r(e))}function L_(e){return qa.call(e)}function B_(e){if(!Va(e)||tI(e))return!1;var t=Vx(e)||Bx(e)?t_:zC;return t.test(dn(e))}function $_(e){if(!qx(e))return a_(e);var t=[];for(var r in Object(e))_r.call(e,r)&&r!="constructor"&&t.push(r);return t}function j_(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function kf(e){var t=new e.constructor(e.byteLength);return new hx(t).set(new hx(e)),t}function U_(e,t){var r=t?kf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function z_(e,t,r){var n=t?r(lx(e),!0):lx(e);return Lx(n,YC,new e.constructor)}function q_(e){var t=new e.constructor(e.source,UC.exec(e));return t.lastIndex=e.lastIndex,t}function H_(e,t,r){var n=t?r(ux(e),!0):ux(e);return Lx(n,GC,new e.constructor)}function W_(e){return gx?Object(gx.call(e)):{}}function V_(e,t){var r=t?kf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Y_(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Ux(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],a=n?n(r[s],e[s],s,r,e):void 0;jx(r,s,a===void 0?e[s]:a)}return r}function G_(e,t){return Ux(e,zx(e),t)}function J_(e){return R_(e,Ef,zx)}function Wa(e,t){var r=e.__data__;return eI(t)?r[typeof t=="string"?"string":"hash"]:r.map}function yi(e,t){var r=XC(e,t);return B_(r)?r:void 0}var zx=mx?Sf(mx,Object):lI,hn=L_;(mf&&hn(new mf(new ArrayBuffer(1)))!=Ua||Ro&&hn(new Ro)!=$a||df&&hn(df.resolve())!=sx||gf&&hn(new gf)!=ja||yf&&hn(new yf)!=hf)&&(hn=function(e){var t=qa.call(e),r=t==wf?e.constructor:void 0,n=r?dn(r):void 0;if(n)switch(n){case l_:return Ua;case u_:return $a;case c_:return sx;case f_:return ja;case p_:return hf}return t});function Q_(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&_r.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Z_(e){return typeof e.constructor=="function"&&!qx(e)?N_(r_(e)):{}}function X_(e,t,r,n){var i=e.constructor;switch(t){case Tx:return kf(e);case bx:case vx:return new i(+e);case Ua:return U_(e,n);case Cx:case _x:case Ix:case Ox:case Mx:case Px:case Dx:case Fx:case Nx:return V_(e,n);case $a:return z_(e,n,r);case Sx:case Ax:return new i(e);case kx:return q_(e);case ja:return H_(e,n,r);case Ex:return W_(e)}}function K_(e,t){return t=t??xx,!!t&&(typeof e=="number"||qC.test(e))&&e>-1&&e%1==0&&e<t}function eI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function tI(e){return!!cx&&cx in e}function qx(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||za;return e===r}function dn(e){if(e!=null){try{return $x.call(e)}catch{}try{return e+""}catch{}}return""}function rI(e){return xf(e,!0,!0)}function Hx(e,t){return e===t||e!==e&&t!==t}function nI(e){return iI(e)&&_r.call(e,"callee")&&(!i_.call(e,"callee")||qa.call(e)==bf)}var Af=Array.isArray;function Wx(e){return e!=null&&sI(e.length)&&!Vx(e)}function iI(e){return aI(e)&&Wx(e)}var oI=s_||uI;function Vx(e){var t=Va(e)?qa.call(e):"";return t==vf||t==wx}function sI(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xx}function Va(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function aI(e){return!!e&&typeof e=="object"}function Ef(e){return Wx(e)?D_(e):$_(e)}function lI(){return[]}function uI(){return!1}mi.exports=rI});var Jx=z((d6,Gx)=>{"use strict";Gx.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&function(o){return function(s){return function(a,l){var u={key:a,value:s[a]},c={key:l,value:s[l]};return o(u,c)}}}(t.cmp),i=[];return function o(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,l;if(Array.isArray(s)){for(l="[",a=0;a<s.length;a++)a&&(l+=","),l+=o(s[a])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(s)-1,c=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<c.length;a++){var f=c[a],p=o(s[f]);p&&(l&&(l+=","),l+=JSON.stringify(f)+":"+p)}return i.splice(u,1),"{"+l+"}"}}(e)}});var xn=z((DH,yn)=>{"use strict";function Fb(e){return typeof e>"u"||e===null}function DO(e){return typeof e=="object"&&e!==null}function FO(e){return Array.isArray(e)?e:Fb(e)?[]:[e]}function NO(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}function RO(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function LO(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}yn.exports.isNothing=Fb;yn.exports.isObject=DO;yn.exports.toArray=FO;yn.exports.repeat=RO;yn.exports.isNegativeZero=LO;yn.exports.extend=NO});var Si=z((FH,Nb)=>{"use strict";function Ho(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ho.prototype=Object.create(Error.prototype);Ho.prototype.constructor=Ho;Ho.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};Nb.exports=Ho});var Bb=z((NH,Lb)=>{"use strict";var Rb=xn();function Wf(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}Wf.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
6
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
|
|
7
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),Rb.repeat(" ",t)+n+a+o+`
|
|
8
|
+
`+Rb.repeat(" ",t+this.position-i+n.length)+"^"};Wf.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
9
|
+
`+r)),n};Lb.exports=Wf});var ze=z((RH,jb)=>{"use strict";var $b=Si(),BO=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],$O=["scalar","sequence","mapping"];function jO(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function UO(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(BO.indexOf(r)===-1)throw new $b('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=jO(t.styleAliases||null),$O.indexOf(this.kind)===-1)throw new $b('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}jb.exports=UO});var bn=z((LH,zb)=>{"use strict";var Ub=xn(),tl=Si(),zO=ze();function Vf(e,t,r){var n=[];return e.include.forEach(function(i){r=Vf(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&n.push(s)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function qO(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function ki(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new tl("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Vf(this,"implicit",[]),this.compiledExplicit=Vf(this,"explicit",[]),this.compiledTypeMap=qO(this.compiledImplicit,this.compiledExplicit)}ki.DEFAULT=null;ki.create=function(){var t,r;switch(arguments.length){case 1:t=ki.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new tl("Wrong number of arguments for Schema.create function")}if(t=Ub.toArray(t),r=Ub.toArray(r),!t.every(function(n){return n instanceof ki}))throw new tl("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof zO}))throw new tl("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new ki({include:t,explicit:r})};zb.exports=ki});var Hb=z((BH,qb)=>{"use strict";var HO=ze();qb.exports=new HO("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Vb=z(($H,Wb)=>{"use strict";var WO=ze();Wb.exports=new WO("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Gb=z((jH,Yb)=>{"use strict";var VO=ze();Yb.exports=new VO("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var rl=z((UH,Jb)=>{"use strict";var YO=bn();Jb.exports=new YO({explicit:[Hb(),Vb(),Gb()]})});var Zb=z((zH,Qb)=>{"use strict";var GO=ze();function JO(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function QO(){return null}function ZO(e){return e===null}Qb.exports=new GO("tag:yaml.org,2002:null",{kind:"scalar",resolve:JO,construct:QO,predicate:ZO,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Kb=z((qH,Xb)=>{"use strict";var XO=ze();function KO(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function eM(e){return e==="true"||e==="True"||e==="TRUE"}function tM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Xb.exports=new XO("tag:yaml.org,2002:bool",{kind:"scalar",resolve:KO,construct:eM,predicate:tM,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var tv=z((HH,ev)=>{"use strict";var rM=xn(),nM=ze();function iM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function oM(e){return 48<=e&&e<=55}function sM(e){return 48<=e&&e<=57}function aM(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!iM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!oM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!sM(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function lM(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseInt(t,10)}function uM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!rM.isNegativeZero(e)}ev.exports=new nM("tag:yaml.org,2002:int",{kind:"scalar",resolve:aM,construct:lM,predicate:uM,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var iv=z((WH,nv)=>{"use strict";var rv=xn(),cM=ze(),fM=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function pM(e){return!(e===null||!fM.test(e)||e[e.length-1]==="_")}function hM(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}var mM=/^[-+]?[0-9]+e/;function dM(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(rv.isNegativeZero(e))return"-0.0";return r=e.toString(10),mM.test(r)?r.replace("e",".e"):r}function gM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||rv.isNegativeZero(e))}nv.exports=new cM("tag:yaml.org,2002:float",{kind:"scalar",resolve:pM,construct:hM,predicate:gM,represent:dM,defaultStyle:"lowercase"})});var Yf=z((VH,ov)=>{"use strict";var yM=bn();ov.exports=new yM({include:[rl()],implicit:[Zb(),Kb(),tv(),iv()]})});var Gf=z((YH,sv)=>{"use strict";var xM=bn();sv.exports=new xM({include:[Yf()]})});var cv=z((GH,uv)=>{"use strict";var bM=ze(),av=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),lv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function vM(e){return e===null?!1:av.exec(e)!==null||lv.exec(e)!==null}function wM(e){var t,r,n,i,o,s,a,l=0,u=null,c,f,p;if(t=av.exec(e),t===null&&(t=lv.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],f=+(t[11]||0),u=(c*60+f)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(r,n,i,o,s,a,l)),u&&p.setTime(p.getTime()-u),p}function SM(e){return e.toISOString()}uv.exports=new bM("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:vM,construct:wM,instanceOf:Date,represent:SM})});var pv=z((JH,fv)=>{"use strict";var kM=ze();function AM(e){return e==="<<"||e===null}fv.exports=new kM("tag:yaml.org,2002:merge",{kind:"scalar",resolve:AM})});var dv=z((QH,mv)=>{"use strict";var vn;try{hv=Is,vn=hv("buffer").Buffer}catch{}var hv,EM=ze(),Jf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10
|
+
\r`;function TM(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Jf;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function CM(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Jf,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),vn?vn.from?vn.from(a):new vn(a):a}function _M(e){var t="",r=0,n,i,o=e.length,s=Jf;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function IM(e){return vn&&vn.isBuffer(e)}mv.exports=new EM("tag:yaml.org,2002:binary",{kind:"scalar",resolve:TM,construct:CM,predicate:IM,represent:_M})});var yv=z((XH,gv)=>{"use strict";var OM=ze(),MM=Object.prototype.hasOwnProperty,PM=Object.prototype.toString;function DM(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,PM.call(i)!=="[object Object]")return!1;for(o in i)if(MM.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function FM(e){return e!==null?e:[]}gv.exports=new OM("tag:yaml.org,2002:omap",{kind:"sequence",resolve:DM,construct:FM})});var bv=z((KH,xv)=>{"use strict";var NM=ze(),RM=Object.prototype.toString;function LM(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],RM.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}function BM(e){if(e===null)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}xv.exports=new NM("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:LM,construct:BM})});var wv=z((e9,vv)=>{"use strict";var $M=ze(),jM=Object.prototype.hasOwnProperty;function UM(e){if(e===null)return!0;var t,r=e;for(t in r)if(jM.call(r,t)&&r[t]!==null)return!1;return!0}function zM(e){return e!==null?e:{}}vv.exports=new $M("tag:yaml.org,2002:set",{kind:"mapping",resolve:UM,construct:zM})});var Ai=z((t9,Sv)=>{"use strict";var qM=bn();Sv.exports=new qM({include:[Gf()],implicit:[cv(),pv()],explicit:[dv(),yv(),bv(),wv()]})});var Av=z((r9,kv)=>{"use strict";var HM=ze();function WM(){return!0}function VM(){}function YM(){return""}function GM(e){return typeof e>"u"}kv.exports=new HM("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:WM,construct:VM,predicate:GM,represent:YM})});var Tv=z((n9,Ev)=>{"use strict";var JM=ze();function QM(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function ZM(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function XM(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function KM(e){return Object.prototype.toString.call(e)==="[object RegExp]"}Ev.exports=new JM("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:QM,construct:ZM,predicate:KM,represent:XM})});var Iv=z((i9,_v)=>{"use strict";var nl;try{Cv=Is,nl=Cv("esprima")}catch{typeof window<"u"&&(nl=window.esprima)}var Cv,eP=ze();function tP(e){if(e===null)return!1;try{var t="("+e+")",r=nl.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function rP(e){var t="("+e+")",r=nl.parse(t,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}function nP(e){return e.toString()}function iP(e){return Object.prototype.toString.call(e)==="[object Function]"}_v.exports=new eP("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:tP,construct:rP,predicate:iP,represent:nP})});var Wo=z((s9,Mv)=>{"use strict";var Ov=bn();Mv.exports=Ov.DEFAULT=new Ov({include:[Ai()],explicit:[Av(),Tv(),Iv()]})});var Qv=z((a9,Vo)=>{"use strict";var fr=xn(),Bv=Si(),oP=Bb(),$v=Ai(),sP=Wo(),Mr=Object.prototype.hasOwnProperty,il=1,jv=2,Uv=3,ol=4,Qf=1,aP=2,Pv=3,lP=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uP=/[\x85\u2028\u2029]/,cP=/[,\[\]\{\}]/,zv=/^(?:!|!!|![a-z\-]+!)$/i,qv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Dv(e){return Object.prototype.toString.call(e)}function qt(e){return e===10||e===13}function Sn(e){return e===9||e===32}function ft(e){return e===9||e===32||e===10||e===13}function Ei(e){return e===44||e===91||e===93||e===123||e===125}function fP(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function pP(e){return e===120?2:e===117?4:e===85?8:0}function hP(e){return 48<=e&&e<=57?e-48:-1}function Fv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
11
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function mP(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Hv=new Array(256),Wv=new Array(256);for(wn=0;wn<256;wn++)Hv[wn]=Fv(wn)?1:0,Wv[wn]=Fv(wn);var wn;function dP(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||sP,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Vv(e,t){return new Bv(t,new oP(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function X(e,t){throw Vv(e,t)}function sl(e,t){e.onWarning&&e.onWarning.call(null,Vv(e,t))}var Nv={YAML:function(t,r,n){var i,o,s;t.version!==null&&X(t,"duplication of %YAML directive"),n.length!==1&&X(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&X(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&X(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&sl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&X(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],zv.test(i)||X(t,"ill-formed tag handle (first argument) of the TAG directive"),Mr.call(t.tagMap,i)&&X(t,'there is a previously declared suffix for "'+i+'" tag handle'),qv.test(o)||X(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Or(e,t,r,n){var i,o,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||X(e,"expected valid JSON character");else lP.test(a)&&X(e,"the stream contains non-printable characters");e.result+=a}}function Rv(e,t,r,n){var i,o,s,a;for(fr.isObject(r)||X(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,a=i.length;s<a;s+=1)o=i[s],Mr.call(t,o)||(t[o]=r[o],n[o]=!0)}function Ti(e,t,r,n,i,o,s,a){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&X(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Dv(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&Dv(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)Rv(e,t,o[l],r);else Rv(e,t,o,r);else!e.json&&!Mr.call(r,i)&&Mr.call(t,i)&&(e.line=s||e.line,e.position=a||e.position,X(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}function Zf(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):X(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function Ne(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Sn(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(qt(i))for(Zf(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&sl(e,"deficient indentation"),n}function al(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ft(r)))}function Xf(e,t){t===1?e.result+=" ":t>1&&(e.result+=fr.repeat(`
|
|
12
|
+
`,t-1))}function gP(e,t,r){var n,i,o,s,a,l,u,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),ft(h)||Ei(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),ft(i)||r&&Ei(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),ft(i)||r&&Ei(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),ft(n))break}else{if(e.position===e.lineStart&&al(e)||r&&Ei(h))break;if(qt(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,Ne(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(Or(e,o,s,!1),Xf(e,e.line-l),o=s=e.position,a=!1),Sn(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return Or(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function yP(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Or(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else qt(r)?(Or(e,n,i,!0),Xf(e,Ne(e,!1,t)),n=i=e.position):e.position===e.lineStart&&al(e)?X(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);X(e,"unexpected end of the stream within a single quoted scalar")}function xP(e,t){var r,n,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Or(e,r,e.position,!0),e.position++,!0;if(a===92){if(Or(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),qt(a))Ne(e,!1,t);else if(a<256&&Hv[a])e.result+=Wv[a],e.position++;else if((s=pP(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=fP(a))>=0?o=(o<<4)+s:X(e,"expected hexadecimal character");e.result+=mP(o),e.position++}else X(e,"unknown escape sequence");r=n=e.position}else qt(a)?(Or(e,r,n,!0),Xf(e,Ne(e,!1,t)),r=n=e.position):e.position===e.lineStart&&al(e)?X(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}X(e,"unexpected end of the stream within a double quoted scalar")}function bP(e,t){var r=!0,n,i=e.tag,o,s=e.anchor,a,l,u,c,f,p={},h,m,b,x;if(x=e.input.charCodeAt(e.position),x===91)l=93,f=!1,o=[];else if(x===123)l=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),x=e.input.charCodeAt(++e.position);x!==0;){if(Ne(e,!0,t),x=e.input.charCodeAt(e.position),x===l)return e.position++,e.tag=i,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=o,!0;r||X(e,"missed comma between flow collection entries"),m=h=b=null,u=c=!1,x===63&&(a=e.input.charCodeAt(e.position+1),ft(a)&&(u=c=!0,e.position++,Ne(e,!0,t))),n=e.line,Ci(e,t,il,!1,!0),m=e.tag,h=e.result,Ne(e,!0,t),x=e.input.charCodeAt(e.position),(c||e.line===n)&&x===58&&(u=!0,x=e.input.charCodeAt(++e.position),Ne(e,!0,t),Ci(e,t,il,!1,!0),b=e.result),f?Ti(e,o,p,m,h,b):u?o.push(Ti(e,null,p,m,h,b)):o.push(h),Ne(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(r=!0,x=e.input.charCodeAt(++e.position)):r=!1}X(e,"unexpected end of the stream within a flow collection")}function vP(e,t){var r,n,i=Qf,o=!1,s=!1,a=t,l=0,u=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Qf===i?i=f===43?Pv:aP:X(e,"repeat of a chomping mode identifier");else if((c=hP(f))>=0)c===0?X(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?X(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(Sn(f)){do f=e.input.charCodeAt(++e.position);while(Sn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!qt(f)&&f!==0)}for(;f!==0;){for(Zf(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),qt(f)){l++;continue}if(e.lineIndent<a){i===Pv?e.result+=fr.repeat(`
|
|
13
|
+
`,o?1+l:l):i===Qf&&o&&(e.result+=`
|
|
14
|
+
`);break}for(n?Sn(f)?(u=!0,e.result+=fr.repeat(`
|
|
15
|
+
`,o?1+l:l)):u?(u=!1,e.result+=fr.repeat(`
|
|
16
|
+
`,l+1)):l===0?o&&(e.result+=" "):e.result+=fr.repeat(`
|
|
17
|
+
`,l):e.result+=fr.repeat(`
|
|
18
|
+
`,o?1+l:l),o=!0,s=!0,l=0,r=e.position;!qt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Or(e,r,e.position,!1)}return!0}function Lv(e,t){var r,n=e.tag,i=e.anchor,o=[],s,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!ft(s)));){if(a=!0,e.position++,Ne(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Ci(e,t,Uv,!1,!0),o.push(e.result),Ne(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)X(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function wP(e,t,r){var n,i,o,s,a=e.tag,l=e.anchor,u={},c={},f=null,p=null,h=null,m=!1,b=!1,x;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),x=e.input.charCodeAt(e.position);x!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(x===63||x===58)&&ft(n))x===63?(m&&(Ti(e,u,c,f,p,null),f=p=h=null),b=!0,m=!0,i=!0):m?(m=!1,i=!0):X(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=n;else if(Ci(e,r,jv,!1,!0))if(e.line===o){for(x=e.input.charCodeAt(e.position);Sn(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),ft(x)||X(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Ti(e,u,c,f,p,null),f=p=h=null),b=!0,m=!1,i=!1,f=e.tag,p=e.result;else if(b)X(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(b)X(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===o||e.lineIndent>t)&&(Ci(e,t,ol,!0,i)&&(m?p=e.result:h=e.result),m||(Ti(e,u,c,f,p,h,o,s),f=p=h=null),Ne(e,!0,-1),x=e.input.charCodeAt(e.position)),e.lineIndent>t&&x!==0)X(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Ti(e,u,c,f,p,null),b&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=u),b}function SP(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&X(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):X(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!ft(s);)s===33&&(n?X(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),zv.test(i)||X(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),cP.test(o)&&X(e,"tag suffix cannot contain flow indicator characters")}return o&&!qv.test(o)&&X(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Mr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:X(e,'undeclared tag handle "'+i+'"'),!0}function kP(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&X(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ft(r)&&!Ei(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function AP(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ft(n)&&!Ei(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&X(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Mr.call(e.anchorMap,r)||X(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ne(e,!0,-1),!0}function Ci(e,t,r,n,i){var o,s,a,l=1,u=!1,c=!1,f,p,h,m,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=ol===r||Uv===r,n&&Ne(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;SP(e)||kP(e);)Ne(e,!0,-1)?(u=!0,a=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||i),(l===1||ol===r)&&(il===r||jv===r?m=t:m=t+1,b=e.position-e.lineStart,l===1?a&&(Lv(e,b)||wP(e,b,m))||bP(e,m)?c=!0:(s&&vP(e,m)||yP(e,m)||xP(e,m)?c=!0:AP(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&X(e,"alias node should not have any properties")):gP(e,m,il===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&Lv(e,b))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&X(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Mr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&X(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):X(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):X(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function EP(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(Ne(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!ft(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&X(e,"directive name must not be less than one character in length");s!==0;){for(;Sn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!qt(s));break}if(qt(s))break;for(r=e.position;s!==0&&!ft(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Zf(e),Mr.call(Nv,n)?Nv[n](e,n,i):sl(e,'unknown document directive "'+n+'"')}if(Ne(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ne(e,!0,-1)):o&&X(e,"directives end mark is expected"),Ci(e,e.lineIndent-1,ol,!1,!0),Ne(e,!0,-1),e.checkLineBreaks&&uP.test(e.input.slice(t,e.position))&&sl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&al(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ne(e,!0,-1));return}if(e.position<e.length-1)X(e,"end of the stream or a document separator is expected");else return}function Yv(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
19
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new dP(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,X(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)EP(r);return r.documents}function Gv(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=Yv(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function Jv(e,t){var r=Yv(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Bv("expected a single document in the stream, but found more")}}function TP(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Gv(e,t,fr.extend({schema:$v},r))}function CP(e,t){return Jv(e,fr.extend({schema:$v},t))}Vo.exports.loadAll=Gv;Vo.exports.load=Jv;Vo.exports.safeLoadAll=TP;Vo.exports.safeLoad=CP});var bw=z((l9,rp)=>{"use strict";var Go=xn(),Jo=Si(),_P=Wo(),IP=Ai(),iw=Object.prototype.toString,ow=Object.prototype.hasOwnProperty,OP=9,Yo=10,MP=13,PP=32,DP=33,FP=34,sw=35,NP=37,RP=38,LP=39,BP=42,aw=44,$P=45,lw=58,jP=61,UP=62,zP=63,qP=64,uw=91,cw=93,HP=96,fw=123,WP=124,pw=125,tt={};tt[0]="\\0";tt[7]="\\a";tt[8]="\\b";tt[9]="\\t";tt[10]="\\n";tt[11]="\\v";tt[12]="\\f";tt[13]="\\r";tt[27]="\\e";tt[34]='\\"';tt[92]="\\\\";tt[133]="\\N";tt[160]="\\_";tt[8232]="\\L";tt[8233]="\\P";var VP=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function YP(e,t){var r,n,i,o,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&ow.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function Zv(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Jo("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Go.repeat("0",n-t.length)+t}function GP(e){this.schema=e.schema||_P,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Go.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=YP(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Xv(e,t){for(var r=Go.repeat(" ",t),n=0,i=-1,o="",s,a=e.length;n<a;)i=e.indexOf(`
|
|
20
|
+
`,n),i===-1?(s=e.slice(n),n=a):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
|
|
21
|
+
`&&(o+=r),o+=s;return o}function Kf(e,t){return`
|
|
22
|
+
`+Go.repeat(" ",e.indent*t)}function JP(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function tp(e){return e===PP||e===OP}function _i(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function QP(e){return _i(e)&&!tp(e)&&e!==65279&&e!==MP&&e!==Yo}function Kv(e,t){return _i(e)&&e!==65279&&e!==aw&&e!==uw&&e!==cw&&e!==fw&&e!==pw&&e!==lw&&(e!==sw||t&&QP(t))}function ZP(e){return _i(e)&&e!==65279&&!tp(e)&&e!==$P&&e!==zP&&e!==lw&&e!==aw&&e!==uw&&e!==cw&&e!==fw&&e!==pw&&e!==sw&&e!==RP&&e!==BP&&e!==DP&&e!==WP&&e!==jP&&e!==UP&&e!==LP&&e!==FP&&e!==NP&&e!==qP&&e!==HP}function hw(e){var t=/^\n* /;return t.test(e)}var mw=1,dw=2,gw=3,yw=4,ll=5;function XP(e,t,r,n,i){var o,s,a,l=!1,u=!1,c=n!==-1,f=-1,p=ZP(e.charCodeAt(0))&&!tp(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),!_i(s))return ll;a=o>0?e.charCodeAt(o-1):null,p=p&&Kv(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===Yo)l=!0,c&&(u=u||o-f-1>n&&e[f+1]!==" ",f=o);else if(!_i(s))return ll;a=o>0?e.charCodeAt(o-1):null,p=p&&Kv(s,a)}u=u||c&&o-f-1>n&&e[f+1]!==" "}return!l&&!u?p&&!i(e)?mw:dw:r>9&&hw(e)?ll:u?yw:gw}function KP(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&VP.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=n||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return JP(e,l)}switch(XP(t,s,e.indent,o,a)){case mw:return t;case dw:return"'"+t.replace(/'/g,"''")+"'";case gw:return"|"+ew(t,e.indent)+tw(Xv(t,i));case yw:return">"+ew(t,e.indent)+tw(Xv(eD(t,o),i));case ll:return'"'+tD(t,o)+'"';default:throw new Jo("impossible error: invalid scalar style")}}()}function ew(e,t){var r=hw(e)?String(t):"",n=e[e.length-1]===`
|
|
23
|
+
`,i=n&&(e[e.length-2]===`
|
|
24
|
+
`||e===`
|
|
25
|
+
`),o=i?"+":n?"":"-";return r+o+`
|
|
26
|
+
`}function tw(e){return e[e.length-1]===`
|
|
27
|
+
`?e.slice(0,-1):e}function eD(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
|
|
28
|
+
`);return u=u!==-1?u:e.length,r.lastIndex=u,rw(e.slice(0,u),t)}(),i=e[0]===`
|
|
29
|
+
`||e[0]===" ",o,s;s=r.exec(e);){var a=s[1],l=s[2];o=l[0]===" ",n+=a+(!i&&!o&&l!==""?`
|
|
30
|
+
`:"")+rw(l,t),i=o}return n}function rw(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,s=0,a=0,l="";n=r.exec(e);)a=n.index,a-i>t&&(o=s>i?s:a,l+=`
|
|
31
|
+
`+e.slice(i,o),i=o+1),s=a;return l+=`
|
|
32
|
+
`,e.length-i>t&&s>i?l+=e.slice(i,s)+`
|
|
33
|
+
`+e.slice(s+1):l+=e.slice(i),l.slice(1)}function tD(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Zv((r-55296)*1024+n-56320+65536),o++;continue}i=tt[r],t+=!i&&_i(r)?e[o]:i||Zv(r)}return t}function rD(e,t,r){var n="",i=e.tag,o,s;for(o=0,s=r.length;o<s;o+=1)kn(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function nD(e,t,r,n){var i="",o=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)kn(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(i+=Kf(e,t)),e.dump&&Yo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function iD(e,t,r){var n="",i=e.tag,o=Object.keys(r),s,a,l,u,c;for(s=0,a=o.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),l=o[s],u=r[l],kn(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),kn(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function oD(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),a,l,u,c,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Jo("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Kf(e,t)),u=s[a],c=r[u],kn(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Yo===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Kf(e,t)),kn(e,t+1,c,!0,f)&&(e.dump&&Yo===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function nw(e,t,r){var n,i,o,s,a,l;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,iw.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(ow.call(a.represent,l))n=a.represent[l](t,l);else throw new Jo("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function kn(e,t,r,n,i,o){e.tag=null,e.dump=r,nw(e,r,!1)||nw(e,r,!0);var s=iw.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",l,u;if(a&&(l=e.duplicates.indexOf(r),u=l!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(i=!1),u&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&u&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(oD(e,t,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(iD(e,t,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump));else if(s==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(nD(e,c,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(rD(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&KP(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new Jo("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function sD(e,t){var r=[],n=[],i,o;for(ep(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}function ep(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)ep(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)ep(e[n[i]],t,r)}function xw(e,t){t=t||{};var r=new GP(t);return r.noRefs||sD(e,r),kn(r,0,e,!0,!0)?r.dump+`
|
|
34
|
+
`:""}function aD(e,t){return xw(e,Go.extend({schema:IP},t))}rp.exports.dump=xw;rp.exports.safeDump=aD});var ww=z((u9,Ee)=>{"use strict";var ul=Qv(),vw=bw();function cl(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}Ee.exports.Type=ze();Ee.exports.Schema=bn();Ee.exports.FAILSAFE_SCHEMA=rl();Ee.exports.JSON_SCHEMA=Yf();Ee.exports.CORE_SCHEMA=Gf();Ee.exports.DEFAULT_SAFE_SCHEMA=Ai();Ee.exports.DEFAULT_FULL_SCHEMA=Wo();Ee.exports.load=ul.load;Ee.exports.loadAll=ul.loadAll;Ee.exports.safeLoad=ul.safeLoad;Ee.exports.safeLoadAll=ul.safeLoadAll;Ee.exports.dump=vw.dump;Ee.exports.safeDump=vw.safeDump;Ee.exports.YAMLException=Si();Ee.exports.MINIMAL_SCHEMA=rl();Ee.exports.SAFE_SCHEMA=Ai();Ee.exports.DEFAULT_SCHEMA=Wo();Ee.exports.scan=cl("scan");Ee.exports.parse=cl("parse");Ee.exports.compose=cl("compose");Ee.exports.addConstructor=cl("addConstructor")});var kw=z((c9,Sw)=>{"use strict";var lD=ww();Sw.exports=lD});var Aw=z(Ht=>{"use strict";var uD=Ht&&Ht.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),cD=Ht&&Ht.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),fD=Ht&&Ht.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&uD(t,e,r);return cD(t,e),t};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.jsYaml=void 0;var pD=fD(kw());Ht.jsYaml=pD});var Tw=z(Et=>{"use strict";var hD=Et&&Et.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),mD=Et&&Et.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),dD=Et&&Et.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&hD(t,e,r);return mD(t,e),t};Object.defineProperty(Et,"__esModule",{value:!0});Et.objectToYamlString=Et.yamlStringToObject=void 0;var Ew=dD(Aw());Et.yamlStringToObject=async(e,t={})=>Ew.jsYaml.safeLoad(e);Et.objectToYamlString=async(e,t={})=>Ew.jsYaml.safeDump(e)});var Nw=z((m9,Fw)=>{"use strict";var fl=Object.prototype.hasOwnProperty,Dw=Object.prototype.toString,Cw=Object.defineProperty,_w=Object.getOwnPropertyDescriptor,Iw=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Dw.call(t)==="[object Array]"},Ow=function(t){if(!t||Dw.call(t)!=="[object Object]")return!1;var r=fl.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&fl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||fl.call(t,i)},Mw=function(t,r){Cw&&r.name==="__proto__"?Cw(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},Pw=function(t,r){if(r==="__proto__")if(fl.call(t,r)){if(_w)return _w(t,r).value}else return;return t[r]};Fw.exports=function e(){var t,r,n,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=Pw(a,r),i=Pw(t,r),a!==i&&(c&&i&&(Ow(i)||(o=Iw(i)))?(o?(o=!1,s=n&&Iw(n)?n:[]):s=n&&Ow(n)?n:{},Mw(a,{name:r,newValue:e(c,s,i)})):typeof i<"u"&&Mw(a,{name:r,newValue:i}));return a}});var fS=z((uJ,ph)=>{(function(){var e;typeof ph<"u"?e=ph.exports=n:e=function(){return this||(0,eval)("this")}(),e.format=n,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}function r(i,o){return n.apply(null,[i].concat(o))}function n(i){for(var o=1,s=[].slice.call(arguments),a=0,l=i.length,u="",c,f=!1,p,h,m=!1,b,x=function(){return s[o++]},v=function(){for(var C="";/\d/.test(i[a]);)C+=i[a++],c=i[a];return C.length>0?parseInt(C):null};a<l;++a)if(c=i[a],f)switch(f=!1,c=="."?(m=!1,c=i[++a]):c=="0"&&i[a+1]=="."?(m=!0,a+=2,c=i[a]):m=!0,b=v(),c){case"b":u+=parseInt(x(),10).toString(2);break;case"c":p=x(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(x(),10);break;case"f":h=String(parseFloat(x()).toFixed(b||6)),u+=m?h:h.replace(/^0/,"");break;case"j":u+=JSON.stringify(x());break;case"o":u+="0"+parseInt(x(),10).toString(8);break;case"s":u+=x();break;case"x":u+="0x"+parseInt(x(),10).toString(16);break;case"X":u+="0x"+parseInt(x(),10).toString(16).toUpperCase();break;default:u+=c;break}else c==="%"?f=!0:u+=c;return u}})()});var Yk=z(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.getFirstTrueOrFalse=Le.timeoutAndContinue=Le.timeoutWrap=Le.map=Le.rejectedPromise=Le.resolvedPromise=Le.defer=Le.Deferred=void 0;var uu=class{constructor(){this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};Le.Deferred=uu;Le.defer=()=>new uu;Le.resolvedPromise=e=>Promise.resolve(e);Le.rejectedPromise=e=>Promise.reject(e);Le.map=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n};Le.timeoutWrap=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)});Le.timeoutAndContinue=async(e,t=6e4)=>Le.timeoutWrap(e,t,!1);Le.getFirstTrueOrFalse=async e=>{let t=Le.defer();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise}});var Xk=z((rm,nm)=>{(function(e,t){typeof rm=="object"&&typeof nm<"u"?nm.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(rm,function(){"use strict";var e=function(){return e=Object.assign||function(g){for(var S,T=1,M=arguments.length;T<M;T++){S=arguments[T];for(var Y in S)Object.prototype.hasOwnProperty.call(S,Y)&&(g[Y]=S[Y])}return g},e.apply(this,arguments)},t=!!(typeof window<"u"&&window.document&&window.document.createElement),r=t?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=function(){var k=!1;if(!t)return k;try{var g=window,S=Object.defineProperty({},"passive",{get:function(){k=!0}});g.addEventListener("test",null,S),g.removeEventListener("test",null,S)}catch{}return k}(),i=function(k){return typeof k=="string"},o=function(k){return typeof k=="function"},s=function(k){return Array.isArray(k)},a=function(k){return!s(k)&&k-parseFloat(k)+1>=0},l=function(k,g){return k&&k.hasOwnProperty(g)},u=t?window.requestAnimationFrame.bind(window):null,c=t?window.cancelAnimationFrame.bind(window):null,f=Math.cos,p=Math.sin,h=Math.pow,m=Math.sqrt,b=Math.PI,x={linear:function(k){return k},easeInQuad:function(k,g,S,T,M){return T*(g/=M)*g+S},easeOutQuad:function(k,g,S,T,M){return-T*(g/=M)*(g-2)+S},easeInOutQuad:function(k,g,S,T,M){return(g/=M/2)<1?T/2*g*g+S:-T/2*(--g*(g-2)-1)+S},easeInCubic:function(k,g,S,T,M){return T*(g/=M)*g*g+S},easeOutCubic:function(k,g,S,T,M){return T*((g=g/M-1)*g*g+1)+S},easeInOutCubic:function(k,g,S,T,M){return(g/=M/2)<1?T/2*g*g*g+S:T/2*((g-=2)*g*g+2)+S},easeInQuart:function(k,g,S,T,M){return T*(g/=M)*g*g*g+S},easeOutQuart:function(k,g,S,T,M){return-T*((g=g/M-1)*g*g*g-1)+S},easeInOutQuart:function(k,g,S,T,M){return(g/=M/2)<1?T/2*g*g*g*g+S:-T/2*((g-=2)*g*g*g-2)+S},easeInQuint:function(k,g,S,T,M){return T*(g/=M)*g*g*g*g+S},easeOutQuint:function(k,g,S,T,M){return T*((g=g/M-1)*g*g*g*g+1)+S},easeInOutQuint:function(k,g,S,T,M){return(g/=M/2)<1?T/2*g*g*g*g*g+S:T/2*((g-=2)*g*g*g*g+2)+S},easeInSine:function(k,g,S,T,M){return-T*f(g/M*(b/2))+T+S},easeOutSine:function(k,g,S,T,M){return T*p(g/M*(b/2))+S},easeInOutSine:function(k,g,S,T,M){return-T/2*(f(b*g/M)-1)+S},easeInExpo:function(k,g,S,T,M){return g===0?S:T*h(2,10*(g/M-1))+S},easeOutExpo:function(k,g,S,T,M){return g===M?S+T:T*(-h(2,-10*g/M)+1)+S},easeInOutExpo:function(k,g,S,T,M){return g===0?S:g===M?S+T:(g/=M/2)<1?T/2*h(2,10*(g-1))+S:T/2*(-h(2,-10*--g)+2)+S},easeInCirc:function(k,g,S,T,M){return-T*(m(1-(g/=M)*g)-1)+S},easeOutCirc:function(k,g,S,T,M){return T*m(1-(g=g/M-1)*g)+S},easeInOutCirc:function(k,g,S,T,M){return(g/=M/2)<1?-T/2*(m(1-g*g)-1)+S:T/2*(m(1-(g-=2)*g)+1)+S}},v=function(k){return Array.prototype.slice.call(k?document.querySelectorAll(k):[])},C=function(k){return v(k).shift()||null},w=function(k){return k instanceof Element},F=function(k){return k===window},H=function(k){return k===document.documentElement||k===document.body},E=function(k,g){if(w(g))return k===g;for(var S=v(g),T=S.length;--T>=0&&S[T]!==k;);return T>-1},R=function(k){return Math.max(k.scrollHeight,k.clientHeight,k.offsetHeight)},W=function(k){return Math.max(k.scrollWidth,k.clientWidth,k.offsetWidth)},$=function(k){return{width:W(k),height:R(k)}},A=function(k){var g=F(k)||H(k);return{viewport:{width:g?Math.min(window.innerWidth,document.documentElement.clientWidth):k.clientWidth,height:g?window.innerHeight:k.clientHeight},size:g?{width:Math.max(W(document.body),W(document.documentElement)),height:Math.max(R(document.body),R(document.documentElement))}:$(k)}},ae={y:"scrollTop",x:"scrollLeft"},B={y:"pageYOffset",x:"pageXOffset"},_=function(k,g){return F(k)?k[B[g]]:k[ae[g]]},I=function(k,g,S){if(F(k)){var T=S==="y";k.scrollTo(T?k.pageXOffset:g,T?g:k.pageYOffset)}else k[ae[S]]=g},D=function(k,g){var S=k.getBoundingClientRect();if(S.width||S.height){var T={top:0,left:0},M=void 0;if(F(g)||H(g))M=document.documentElement,T.top=window[B.y],T.left=window[B.x];else{M=g;var Y=M.getBoundingClientRect();T.top=Y.top*-1+M[ae.y],T.left=Y.left*-1+M[ae.x]}return{top:S.top+T.top-M.clientTop,left:S.left+T.left-M.clientLeft}}return S},N=function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),V=function(k){return k==="wheel"?N:k},P=function(k,g,S,T,M){S.split(" ").forEach(function(Y){k[g](V(Y),T,n?{passive:M}:!1)})},j=function(k,g,S,T){return P(k,"addEventListener",g,S,T)},d=function(k,g,S,T){return P(k,"removeEventListener",g,S,T)},G=/^(\+|-)=(\d+(?:\.\d+)?)$/,Z=function(k,g){var S={top:0,left:0,relative:!1};if(l(k,"top")||l(k,"left"))S=e({},S,k);else if(s(k))if(k.length>1)S.top=k[0],S.left=k[1];else if(k.length===1)S.top=g?k[0]:0,S.left=g?0:k[0];else return null;else if(a(k))g?S.top=k:S.left=k;else if(i(k)){var T=k.trim().match(G);if(!T)return null;var M=T[1],Y=parseInt(T[2],10);M==="+"?(S.top=g?Y:0,S.left=g?0:Y):(S.top=g?-Y:0,S.left=g?0:-Y),S.relative=!0}else return null;return S},y={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},re="click",ce="wheel touchstart touchmove",ke=function(){function k(g,S){var T=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(Y){var pe=T,he=pe.$el,me=pe.ctx;if(me.start||(me.start=Y),!me.progress||!he){T.stop();return}var bt=me.opts,Xe=me.pos,mt=me.start,Qt=me.startPos,yr=me.easing,_t=bt.duration,Rt={top:"y",left:"x"},vt=Y-mt,Pe=Math.min(1,Math.max(vt/_t,0));Object.keys(Xe).forEach(function(xr){var O=Xe[xr],U=Qt[xr],K=O-U;if(K!==0){var ne=yr(Pe,_t*Pe,0,1,_t);I(he,Math.round(U+K*ne),Rt[xr])}}),vt<=_t?(T.hook(bt,"step",Pe),me.id=k.raf(T.loop)):T.stop(!0)},this.handleClick=function(Y){for(var pe=T.opts,he=Y.target;he&&he!==document;he=he.parentNode)if(E(he,pe.trigger)){var me=JSON.parse(he.getAttribute("data-scroll-options")||"{}"),bt=he.getAttribute("data-scroll"),Xe=bt||he.getAttribute("href"),mt=e({},pe,me),Qt=mt.preventDefault,yr=mt.stopPropagation,_t=mt.vertical,Rt=mt.horizontal;Qt&&Y.preventDefault(),yr&&Y.stopPropagation(),T.ctx.$trigger=he,Rt&&_t?T.to(Xe,mt):_t?T.toTop(Xe,mt):Rt&&T.toLeft(Xe,mt);break}},this.handleStop=function(Y){var pe=T.ctx,he=pe.opts;he&&he.cancellable?(pe.cancel=!0,T.stop()):Y.preventDefault()},this.opts=e({},y,g||{});var M=null;t&&(typeof S=="string"?M=C(S):S!=null?M=S:M=window),this.$el=M,M&&this.bind(!0,!1)}return k.create=function(g,S){return new k(g,S)},k.prototype.to=function(g,S){if(t){var T=this,M=T.$el,Y=T.ctx,pe=T.opts,he=Y.$trigger,me=e({},pe,S||{}),bt=me.offset,Xe=me.vertical,mt=me.horizontal,Qt=w(me.header)?me.header:C(me.header),yr=/^#/,_t=i(g)&&yr.test(g)?g:null;if(Y.opts=me,Y.cancel=!1,Y.hash=_t,this.stop(),!!M){var Rt=Z(bt,Xe),vt=Z(g,Xe),Pe={top:0,left:0};if(vt)if(vt.relative){var xr=_(M,Xe?"y":"x");Pe.top=Xe?xr+vt.top:vt.top,Pe.left=Xe?vt.left:xr+vt.left}else Pe=vt;else if(i(g)&&g!=="#"){var O=C(g);if(!O)return;Pe=D(O,M)}Rt&&(Pe.top+=Rt.top,Pe.left+=Rt.left),Qt&&(Pe.top=Math.max(0,Pe.top-$(Qt).height));var U=A(M),K=U.viewport,ne=U.size;if(Pe.top=Xe?Math.max(0,Math.min(ne.height-K.height,Pe.top)):_(M,"y"),Pe.left=mt?Math.max(0,Math.min(ne.width-K.width,Pe.left)):_(M,"x"),this.hook(me,"before",Pe,he)===!1){Y.opts=null;return}Y.pos=Pe,this.start(me),this.bind(!1,!0)}}},k.prototype.toTop=function(g,S){this.to(g,e({},S||{},{vertical:!0,horizontal:!1}))},k.prototype.toLeft=function(g,S){this.to(g,e({},S||{},{vertical:!1,horizontal:!0}))},k.prototype.toElement=function(g,S){var T=this.$el;!t||!T||this.to(D(g,T),S||{})},k.prototype.stop=function(g){g===void 0&&(g=!1);var S=this,T=S.$el,M=S.ctx,Y=M.pos;!T||!M.progress||(k.caf(M.id),M.progress=!1,M.start=0,M.id=0,g&&Y&&(I(T,Y.left,"x"),I(T,Y.top,"y")),this.complete())},k.prototype.update=function(g){if(this.$el){var S=e({},this.opts,g);this.stop(),this.unbind(!0,!0),this.opts=S,this.bind(!0,!1)}},k.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},k.prototype.onBefore=function(g,S){return!0},k.prototype.onStep=function(g){},k.prototype.onAfter=function(g,S){},k.prototype.onCancel=function(){},k.prototype.onComplete=function(g){},k.prototype.start=function(g){var S=this.ctx;S.opts=g,S.progress=!0,S.easing=o(g.easing)?g.easing:x[g.easing];var T=this.$el,M={top:_(T,"y"),left:_(T,"x")};S.startPos=M,S.id=k.raf(this.loop)},k.prototype.complete=function(){var g=this,S=g.$el,T=g.ctx,M=T.hash,Y=T.cancel,pe=T.opts,he=T.pos,me=T.$trigger;if(!(!S||!pe)){if(M!=null&&M!==window.location.hash){var bt=pe.updateURL;t&&r&&bt!==!1&&window.history[bt==="replace"?"replaceState":"pushState"](null,"",M)}this.unbind(!1,!0),T.opts=null,T.$trigger=null,Y?this.hook(pe,"cancel"):this.hook(pe,"after",he,me),this.hook(pe,"complete",Y)}},k.prototype.hook=function(g,S){for(var T=[],M=2;M<arguments.length;M++)T[M-2]=arguments[M];var Y,pe=g[S],he,me;return o(pe)&&(he=pe.apply(this,T.concat([this]))),me=(Y=this)["on"+(S[0].toUpperCase()+S.slice(1))].apply(Y,T),he!==void 0?he:me},k.prototype.bind=function(g,S){var T=this,M=T.$el,Y=T.ctx.opts;M&&(g&&j(M,re,this.handleClick,!1),S&&j(M,ce,this.handleStop,Y?Y.cancellable:!0))},k.prototype.unbind=function(g,S){var T=this,M=T.$el,Y=T.ctx.opts;M&&(g&&d(M,re,this.handleClick,!1),S&&d(M,ce,this.handleStop,Y?Y.cancellable:!0))},k.raf=u,k.caf=c,k}();return ke})});var Os=globalThis,Ms=Os.ShadowRoot&&(Os.ShadyCSS===void 0||Os.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tu=Symbol(),gm=new WeakMap,no=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Tu)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Ms&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=gm.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&gm.set(r,t))}return t}toString(){return this.cssText}},_e=e=>new no(typeof e=="string"?e:e+"",void 0,Tu),Se=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new no(r,e,Tu)},Cu=(e,t)=>{if(Ms)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Os.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Ps=Ms?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return _e(r)})(e):e;var{is:v1,defineProperty:w1,getOwnPropertyDescriptor:S1,getOwnPropertyNames:k1,getOwnPropertySymbols:A1,getPrototypeOf:E1}=Object,Ds=globalThis,ym=Ds.trustedTypes,T1=ym?ym.emptyScript:"",C1=Ds.reactiveElementPolyfillSupport,io=(e,t)=>e,oo={toAttribute(e,t){switch(t){case Boolean:e=e?T1:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Fs=(e,t)=>!v1(e,t),xm={attribute:!0,type:String,converter:oo,reflect:!1,hasChanged:Fs};Symbol.metadata??=Symbol("metadata"),Ds.litPropertyMetadata??=new WeakMap;var Kt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=xm){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&w1(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=S1(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);o.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??xm}static _$Ei(){if(this.hasOwnProperty(io("elementProperties")))return;let t=E1(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(io("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(io("properties"))){let r=this.properties,n=[...k1(r),...A1(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(Ps(i))}else t!==void 0&&r.push(Ps(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Cu(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:oo).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:oo;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??=this.constructor.getPropertyOptions(t),!(n.hasChanged??Fs)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(t){}firstUpdated(t){}};Kt.elementStyles=[],Kt.shadowRootOptions={mode:"open"},Kt[io("elementProperties")]=new Map,Kt[io("finalized")]=new Map,C1?.({ReactiveElement:Kt}),(Ds.reactiveElementVersions??=[]).push("2.0.4");var Iu=globalThis,Ns=Iu.trustedTypes,bm=Ns?Ns.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ou="$lit$",er=`lit$${Math.random().toFixed(9).slice(2)}$`,Mu="?"+er,_1=`<${Mu}>`,Wr=document,ao=()=>Wr.createComment(""),lo=e=>e===null||typeof e!="object"&&typeof e!="function",Em=Array.isArray,Tm=e=>Em(e)||typeof e?.[Symbol.iterator]=="function",_u=`[
|
|
35
|
+
\f\r]`,so=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vm=/-->/g,wm=/>/g,qr=RegExp(`>|${_u}(?:([^\\s"'>=/]+)(${_u}*=${_u}*(?:[^
|
|
36
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Sm=/'/g,km=/"/g,Cm=/^(?:script|style|textarea|title)$/i,_m=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),le=_m(1),PB=_m(2),De=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),Am=new WeakMap,Hr=Wr.createTreeWalker(Wr,129);function Im(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return bm!==void 0?bm.createHTML(t):t}var Om=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":"",s=so;for(let a=0;a<r;a++){let l=e[a],u,c,f=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===so?c[1]==="!--"?s=vm:c[1]!==void 0?s=wm:c[2]!==void 0?(Cm.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=qr):c[3]!==void 0&&(s=qr):s===qr?c[0]===">"?(s=i??so,f=-1):c[1]===void 0?f=-2:(f=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?qr:c[3]==='"'?km:Sm):s===km||s===Sm?s=qr:s===vm||s===wm?s=so:(s=qr,i=void 0);let h=s===qr&&e[a+1].startsWith("/>")?" ":"";o+=s===so?l+_1:f>=0?(n.push(u),l.slice(0,f)+Ou+l.slice(f)+er+h):l+er+(f===-2?a:h)}return[Im(e,o+(e[r]||"<?>")+(t===2?"</svg>":"")),n]},uo=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[u,c]=Om(t,r);if(this.el=e.createElement(u,n),Hr.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Hr.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Ou)){let p=c[s++],h=i.getAttribute(f).split(er),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Ls:m[1]==="?"?Bs:m[1]==="@"?$s:Yr}),i.removeAttribute(f)}else f.startsWith(er)&&(l.push({type:6,index:o}),i.removeAttribute(f));if(Cm.test(i.tagName)){let f=i.textContent.split(er),p=f.length-1;if(p>0){i.textContent=Ns?Ns.emptyScript:"";for(let h=0;h<p;h++)i.append(f[h],ao()),Hr.nextNode(),l.push({type:2,index:++o});i.append(f[p],ao())}}}else if(i.nodeType===8)if(i.data===Mu)l.push({type:2,index:o});else{let f=-1;for(;(f=i.data.indexOf(er,f+1))!==-1;)l.push({type:7,index:o}),f+=er.length-1}o++}}static createElement(t,r){let n=Wr.createElement("template");return n.innerHTML=t,n}};function Vr(e,t,r=e,n){if(t===De)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=lo(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Vr(e,i._$AS(e,t.values),i,n)),t}var Rs=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Wr).importNode(r,!0);Hr.currentNode=i;let o=Hr.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new zn(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new js(o,this,t)),this._$AV.push(u),l=n[++a]}s!==l?.index&&(o=Hr.nextNode(),s++)}return Hr.currentNode=Wr,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},zn=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Vr(this,t,r),lo(t)?t===Ie||t==null||t===""?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):t!==this._$AH&&t!==De&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Tm(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==Ie&&lo(this._$AH)?this._$AA.nextSibling.data=t:this.T(Wr.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=uo.createElement(Im(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new Rs(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Am.get(t.strings);return r===void 0&&Am.set(t.strings,r=new uo(t)),r}k(t){Em(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.S(ao()),this.S(ao()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Yr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ie}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Vr(this,t,r,0),s=!lo(t)||t!==this._$AH&&t!==De,s&&(this._$AH=t);else{let a=t,l,u;for(t=o[0],l=0;l<o.length-1;l++)u=Vr(this,a[n+l],r,l),u===De&&(u=this._$AH[l]),s||=!lo(u)||u!==this._$AH[l],u===Ie?t=Ie:t!==Ie&&(t+=(u??"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(t)}j(t){t===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ls=class extends Yr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ie?void 0:t}},Bs=class extends Yr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Ie)}},$s=class extends Yr{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Vr(this,t,r,0)??Ie)===De)return;let n=this._$AH,i=t===Ie&&n!==Ie||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Ie&&(n===Ie||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},js=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Vr(this,t)}},Mm={P:Ou,A:er,C:Mu,M:1,L:Om,R:Rs,D:Tm,V:Vr,I:zn,H:Yr,N:Bs,U:$s,B:Ls,F:js},I1=Iu.litHtmlPolyfillSupport;I1?.(uo,zn),(Iu.litHtmlVersions??=[]).push("3.1.4");var Pu=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new zn(t.insertBefore(ao(),o),o,void 0,r??{})}return i._$AI(e),i};var br=class extends Kt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Pu(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return De}};br._$litElement$=!0,br.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:br});var O1=globalThis.litElementPolyfillSupport;O1?.({LitElement:br});(globalThis.litElementVersions??=[]).push("4.0.6");var e1=Ge(zs(),1);var xe={};oe(xe,{ObservableIntake:()=>Ju,Observablemap:()=>Gu,rxjs:()=>go});var te={};oe(te,{CumulativeDeferred:()=>Hs,Deferred:()=>qs,cumulativeDefer:()=>P1,defer:()=>Gr,getFirstTrueOrFalse:()=>L1,map:()=>N1,rejectedPromise:()=>F1,resolvedPromise:()=>D1,timeoutAndContinue:()=>R1,timeoutWrap:()=>Pm});var qs=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Gr=()=>new qs;var Hs=class{constructor(){this.accumulatedPromises=[],this.deferred=Gr(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},P1=()=>new Hs;var D1=e=>Promise.resolve(e),F1=e=>Promise.reject(e),N1=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},Pm=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),R1=async(e,t=6e4)=>Pm(e,t,!1),L1=async e=>{let t=Gr();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var go={};oe(go,{Observable:()=>ve,ReplaySubject:()=>Bu,Subject:()=>rr,Subscription:()=>Mt,from:()=>Kr,fromEvent:()=>tn,of:()=>ju,ops:()=>uA});var Du=function(e,t){return Du=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Du(e,t)};function Ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Du(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Dm(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function Ws(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function tr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Ot(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Jr(e){return this instanceof Jr?(this.v=e,this):new Jr(e)}function Fm(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(m){return Promise.resolve(m).then(h,f)}}function a(h,m){n[h]&&(i[h]=function(b){return new Promise(function(x,v){o.push([h,b,x,v])>1||l(h,b)})},m&&(i[h]=m(i[h])))}function l(h,m){try{u(n[h](m))}catch(b){p(o[0][3],b)}}function u(h){h.value instanceof Jr?Promise.resolve(h.value.v).then(c,f):p(o[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function p(h,m){h(m),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Nm(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof tr=="function"?tr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}function ie(e){return typeof e=="function"}function Vs(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ys=Vs(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
37
|
+
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
38
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Qr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Mt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=tr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(b){t={error:b}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(ie(c))try{c()}catch(b){o=b instanceof Ys?b.errors:[b]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=tr(f),h=p.next();!h.done;h=p.next()){var m=h.value;try{Rm(m)}catch(b){o=o??[],b instanceof Ys?o=Ot(Ot([],gt(o)),gt(b.errors)):o.push(b)}}}catch(b){n={error:b}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}if(o)throw new Ys(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Rm(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Qr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Qr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Fu=Mt.EMPTY;function Gs(e){return e instanceof Mt||e&&"closed"in e&&ie(e.remove)&&ie(e.add)&&ie(e.unsubscribe)}function Rm(e){ie(e)?e():e.unsubscribe()}var Pt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var qn={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=qn.delegate;return i?.setTimeout?i.setTimeout.apply(i,Ot([e,t],gt(r))):setTimeout.apply(void 0,Ot([e,t],gt(r)))},clearTimeout:function(e){var t=qn.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Js(e){qn.setTimeout(function(){var t=Pt.onUnhandledError;if(t)t(e);else throw e})}function Zr(){}var Lm=function(){return Nu("C",void 0,void 0)}();function Bm(e){return Nu("E",void 0,e)}function $m(e){return Nu("N",e,void 0)}function Nu(e,t,r){return{kind:e,value:t,error:r}}var Xr=null;function Hn(e){if(Pt.useDeprecatedSynchronousErrorHandling){var t=!Xr;if(t&&(Xr={errorThrown:!1,error:null}),e(),t){var r=Xr,n=r.errorThrown,i=r.error;if(Xr=null,n)throw i}}else e()}function jm(e){Pt.useDeprecatedSynchronousErrorHandling&&Xr&&(Xr.errorThrown=!0,Xr.error=e)}var co=function(e){Ke(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Gs(r)&&r.add(n)):n.destination=z1,n}return t.create=function(r,n,i){return new Zs(r,n,i)},t.prototype.next=function(r){this.isStopped?Lu($m(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Lu(Bm(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Lu(Lm,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Mt);var $1=Function.prototype.bind;function Ru(e,t){return $1.call(e,t)}var j1=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Qs(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Qs(n)}else Qs(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Qs(r)}},e}(),Zs=function(e){Ke(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ie(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&Pt.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&Ru(r.next,a),error:r.error&&Ru(r.error,a),complete:r.complete&&Ru(r.complete,a)}):s=r}return o.destination=new j1(s),o}return t}(co);function Qs(e){Pt.useDeprecatedSynchronousErrorHandling?jm(e):Js(e)}function U1(e){throw e}function Lu(e,t){var r=Pt.onStoppedNotification;r&&qn.setTimeout(function(){return r(e,t)})}var z1={closed:!0,next:Zr,error:U1,complete:Zr};var Wn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xs(e){return e}function Um(e){return e.length===0?Xs:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var ve=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=H1(t)?t:new Zs(t,r,n);return Hn(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=zm(r),new r(function(i,o){var s=new Zs({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Wn]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Um(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=zm(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function zm(e){var t;return(t=e??Pt.Promise)!==null&&t!==void 0?t:Promise}function q1(e){return e&&ie(e.next)&&ie(e.error)&&ie(e.complete)}function H1(e){return e&&e instanceof co||q1(e)&&Gs(e)}function W1(e){return ie(e?.lift)}function Fe(e){return function(t){if(W1(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(e,t,r,n,i){return new V1(e,t,r,n,i)}var V1=function(e){Ke(t,e);function t(r,n,i,o,s,a){var l=e.call(this,r)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=n?function(u){try{n(u)}catch(c){r.error(c)}}:e.prototype._next,l._error=o?function(u){try{o(u)}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(co);var qm=Vs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var rr=function(e){Ke(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Hm(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new qm},t.prototype.next=function(r){var n=this;Hn(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=tr(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Hn(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Hn(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Fu:(this.currentObservers=null,a.push(r),new Mt(function(){n.currentObservers=null,Qr(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new ve;return r.source=this,r},t.create=function(r,n){return new Hm(r,n)},t}(ve);var Hm=function(e){Ke(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Fu},t}(rr);var fo={now:function(){return(fo.delegate||Date).now()},delegate:void 0};var Bu=function(e){Ke(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=fo);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;i||(o.push(r),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},t}(rr);var Wm=function(e){Ke(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t}(Mt);var po={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=po.delegate;return i?.setInterval?i.setInterval.apply(i,Ot([e,t],gt(r))):setInterval.apply(void 0,Ot([e,t],gt(r)))},clearInterval:function(e){var t=po.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Vm=function(e){Ke(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),po.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&po.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Qr(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Wm);var $u=function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=fo.now,e}();var Ym=function(e){Ke(t,e);function t(r,n){n===void 0&&(n=$u.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}($u);var ho=new Ym(Vm),Gm=ho;function Ks(e){return e&&ie(e.schedule)}function Y1(e){return e[e.length-1]}function Vn(e){return Ks(Y1(e))?e.pop():void 0}var Yn=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function ea(e){return ie(e?.then)}function ta(e){return ie(e[Wn])}function ra(e){return Symbol.asyncIterator&&ie(e?.[Symbol.asyncIterator])}function na(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function G1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ia=G1();function oa(e){return ie(e?.[ia])}function sa(e){return Fm(this,arguments,function(){var r,n,i,o;return Ws(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Jr(r.read())];case 3:return n=s.sent(),i=n.value,o=n.done,o?[4,Jr(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Jr(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function aa(e){return ie(e?.getReader)}function He(e){if(e instanceof ve)return e;if(e!=null){if(ta(e))return J1(e);if(Yn(e))return Q1(e);if(ea(e))return Z1(e);if(ra(e))return Jm(e);if(oa(e))return X1(e);if(aa(e))return K1(e)}throw na(e)}function J1(e){return new ve(function(t){var r=e[Wn]();if(ie(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Q1(e){return new ve(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Z1(e){return new ve(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Js)})}function X1(e){return new ve(function(t){var r,n;try{for(var i=tr(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function Jm(e){return new ve(function(t){eA(e,t).catch(function(r){return t.error(r)})})}function K1(e){return Jm(sa(e))}function eA(e,t){var r,n,i,o;return Dm(this,void 0,void 0,function(){var s,a;return Ws(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=Nm(e),l.label=1;case 1:return[4,r.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function wt(e,t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function la(e,t){return t===void 0&&(t=0),Fe(function(r,n){r.subscribe($e(n,function(i){return wt(n,e,function(){return n.next(i)},t)},function(){return wt(n,e,function(){return n.complete()},t)},function(i){return wt(n,e,function(){return n.error(i)},t)}))})}function ua(e,t){return t===void 0&&(t=0),Fe(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function Qm(e,t){return He(e).pipe(ua(t),la(t))}function Zm(e,t){return He(e).pipe(ua(t),la(t))}function Xm(e,t){return new ve(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Km(e,t){return new ve(function(r){var n;return wt(r,t,function(){n=e[ia](),wt(r,t,function(){var i,o,s;try{i=n.next(),o=i.value,s=i.done}catch(a){r.error(a);return}s?r.complete():r.next(o)},0,!0)}),function(){return ie(n?.return)&&n.return()}})}function ca(e,t){if(!e)throw new Error("Iterable cannot be null");return new ve(function(r){wt(r,t,function(){var n=e[Symbol.asyncIterator]();wt(r,t,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function ed(e,t){return ca(sa(e),t)}function td(e,t){if(e!=null){if(ta(e))return Qm(e,t);if(Yn(e))return Xm(e,t);if(ea(e))return Zm(e,t);if(ra(e))return ca(e,t);if(oa(e))return Km(e,t);if(aa(e))return ed(e,t)}throw na(e)}function Kr(e,t){return t?td(e,t):He(e)}function ju(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Vn(e);return Kr(e,r)}function rd(e){return e instanceof Date&&!isNaN(e)}function en(e,t){return Fe(function(r,n){var i=0;r.subscribe($e(n,function(o){n.next(e.call(t,o,i++))}))})}var tA=Array.isArray;function rA(e,t){return tA(t)?e.apply(void 0,Ot([],gt(t))):e(t)}function nd(e){return en(function(t){return rA(e,t)})}function id(e,t,r,n,i,o,s,a){var l=[],u=0,c=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},h=function(b){return u<n?m(b):l.push(b)},m=function(b){o&&t.next(b),u++;var x=!1;He(r(b,c++)).subscribe($e(t,function(v){i?.(v),o?h(v):t.next(v)},function(){x=!0},void 0,function(){if(x)try{u--;for(var v=function(){var C=l.shift();s?wt(t,s,function(){return m(C)}):m(C)};l.length&&u<n;)v();p()}catch(C){t.error(C)}}))};return e.subscribe($e(t,h,function(){f=!0,p()})),function(){a?.()}}function mo(e,t,r){return r===void 0&&(r=1/0),ie(t)?mo(function(n,i){return en(function(o,s){return t(n,o,i,s)})(He(e(n,i)))},r):(typeof t=="number"&&(r=t),Fe(function(n,i){return id(n,i,e,r)}))}function od(e){return e===void 0&&(e=1/0),mo(Xs,e)}function sd(){return od(1)}function Uu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sd()(Kr(e,Vn(e)))}var nA=["addListener","removeListener"],iA=["addEventListener","removeEventListener"],oA=["on","off"];function tn(e,t,r,n){if(ie(r)&&(n=r,r=void 0),n)return tn(e,t,r).pipe(nd(n));var i=gt(lA(e)?iA.map(function(a){return function(l){return e[a](t,l,r)}}):sA(e)?nA.map(ad(e,t)):aA(e)?oA.map(ad(e,t)):[],2),o=i[0],s=i[1];if(!o&&Yn(e))return mo(function(a){return tn(a,t,r)})(He(e));if(!o)throw new TypeError("Invalid event target");return new ve(function(a){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a.next(1<u.length?u:u[0])};return o(l),function(){return s(l)}})}function ad(e,t){return function(r){return function(n){return e[r](t,n)}}}function sA(e){return ie(e.addListener)&&ie(e.removeListener)}function aA(e){return ie(e.on)&&ie(e.off)}function lA(e){return ie(e.addEventListener)&&ie(e.removeEventListener)}function ld(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Gm);var n=-1;return t!=null&&(Ks(t)?r=t:n=t),new ve(function(i){var o=rd(e)?+e-r.now():e;o<0&&(o=0);var s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function zu(e,t){return Fe(function(r,n){var i=0;r.subscribe($e(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function qu(e){return Fe(function(t,r){var n=!1,i=null,o=null,s=function(){if(o?.unsubscribe(),o=null,n){n=!1;var a=i;i=null,r.next(a)}};t.subscribe($e(r,function(a){o?.unsubscribe(),n=!0,i=a,o=$e(r,s,Zr),He(e(a)).subscribe(o)},function(){s(),r.complete()},void 0,function(){i=o=null}))})}function Hu(e,t){return t===void 0&&(t=ho),Fe(function(r,n){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var u=o;o=null,n.next(u)}};function l(){var u=s+e,c=t.now();if(c<u){i=this.schedule(void 0,u-c),n.add(i);return}a()}r.subscribe($e(n,function(u){o=u,s=t.now(),i||(i=t.schedule(l,e),n.add(i))},function(){a(),n.complete()},void 0,function(){o=i=null}))})}function Wu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Vn(e);return Fe(function(n,i){(r?Uu(e,n,r):Uu(e,n)).subscribe(i)})}function Vu(e){return Fe(function(t,r){He(e).subscribe($e(r,function(){return r.complete()},Zr)),!r.closed&&t.subscribe(r)})}function ud(e,t){return Fe(function(r,n){var i=t??{},o=i.leading,s=o===void 0?!0:o,a=i.trailing,l=a===void 0?!1:a,u=!1,c=null,f=null,p=!1,h=function(){f?.unsubscribe(),f=null,l&&(x(),p&&n.complete())},m=function(){f=null,p&&n.complete()},b=function(v){return f=He(e(v)).subscribe($e(n,h,m))},x=function(){if(u){u=!1;var v=c;c=null,n.next(v),!p&&b(v)}};r.subscribe($e(n,function(v){u=!0,c=v,!(f&&!f.closed)&&(s?x():b(v))},function(){p=!0,!(l&&u&&f&&!f.closed)&&n.complete()}))})}function Yu(e,t,r){t===void 0&&(t=ho);var n=ld(e,t);return ud(function(){return n},r)}var uA={debounce:qu,debounceTime:Hu,map:en,startWith:Wu,takeUntil:Vu,throttleTime:Yu,filter:zu};var Gu=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let i=tn(t,r),o=new rr;i.subscribe(o);let s={subject:o,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let o={subject:new rr,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(o),o.subject}}};var Ju=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new ve(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=te.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};var cA={attribute:!0,type:String,converter:oo,reflect:!1,hasChanged:Fs},fA=(e=cA,t,r)=>{let{kind:n,metadata:i}=r,o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,e)},init(a){return a!==void 0&&this.P(s,void 0,e),a}}}if(n==="setter"){let{name:s}=r;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,e)}}throw Error("Unsupported decorator location: "+n)};function yt(e){return(t,r)=>typeof r=="object"?fA(e,t,r):((n,i,o)=>{let s=i.hasOwnProperty(o);return i.constructor.createProperty(o,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,r)}var Qe={};oe(Qe,{DomTools:()=>Gt,TypedRequest:()=>zo,breakpoints:()=>dr,css:()=>fm,elementBasic:()=>at,plugins:()=>dB});var at={};oe(at,{setup:()=>hB,staticStyles:()=>fB,styles:()=>pB});var el={};oe(el,{DeesComms:()=>Hf});var fe={};oe(fe,{Timeout:()=>fa,delayFor:()=>cd,delayForRandom:()=>pA});var cd=async(e,t,r=!1)=>(await new fa(e,null,r).promise,t),pA=async(e,t,r,n=!1)=>(await cd(Math.random()*(t-e)+e,null,n),r),fa=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Gr(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var At={};oe(At,{TypedHandler:()=>Lf,TypedRequest:()=>zo,TypedResponseError:()=>lr,TypedRouter:()=>Uo,TypedTarget:()=>Bf,VirtualStream:()=>Ut});var gn=Ge(zs(),1);var ct={};oe(ct,{AsyncExecutionStack:()=>dc,BackpressuredArray:()=>gc,FastMap:()=>vo,Interest:()=>wo,InterestMap:()=>yc,LimitedArray:()=>xc,LoopTracker:()=>bc,ObjectMap:()=>sn,Stringmap:()=>vc,TimedAggregtor:()=>wc,Tree:()=>Sc,uni:()=>Id});var nn={};oe(nn,{SmartMatch:()=>Zu});var pa={};oe(pa,{isMatch:()=>dA,matcher:()=>mA});function rn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Qu=new Map,fd=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},hA=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Qu.has(r))return Qu.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=rn(e).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return i.negated=n,Qu.set(r,i),i},pd=(e,t,r,n)=>{if(e=fd(e,"inputs"),t=fd(t,"patterns"),t.length===0)return[];t=t.map(s=>hA(s,r));let{allPatterns:i}=r||{},o=[];for(let s of e){let a,l=[...t].fill(!1);for(let[u,c]of t.entries())if(c.test(s)&&(l[u]=!0,a=!c.negated,!a))break;if(!(a===!1||a===void 0&&t.some(u=>!u.negated)||i&&l.some((u,c)=>!u&&!t[c].negated))&&(o.push(s),n))break}return o};function mA(e,t,r){return pd(e,t,r,!1)}function dA(e,t,r){return pd(e,t,r,!0).length>0}var Zu=class{constructor(t){this.wildcard=t}match(t){return pa.isMatch(t,this.wildcard)}};var on={};oe(on,{CronJob:()=>bo,CronManager:()=>ac,ExtendedDate:()=>lc,HrtMeasurement:()=>uc,Interval:()=>cc,TimeStamp:()=>Qn,Timer:()=>fc,getMilliSecondsAsHumanReadableString:()=>sc,getMilliSecondsFromUnits:()=>oc,units:()=>vr});function lt(e,t,r,n,i,o,s,a){return lt.fromTZ(lt.tp(e,t,r,n,i,o,s),a)}lt.fromTZISO=(e,t,r)=>lt.fromTZ(yA(e,t),r);lt.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Xu(e.tz,r),i=new Date(r.getTime()-n),o=Xu(e.tz,i);if(o-n===0)return i;{let s=new Date(r.getTime()-o),a=Xu(e.tz,s);if(a-o===0)return s;if(!t&&a-o>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return i}};lt.toTZ=function(e,t){let r=e.toLocaleString("en-US",{timeZone:t}).replace(/[\u202f]/," "),n=new Date(r);return{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),tz:t}};lt.tp=(e,t,r,n,i,o,s)=>({y:e,m:t,d:r,h:n,i,s:o,tz:s});function Xu(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"short"}).split(" ").slice(-1)[0];r=r.replace(/\bAKST\b/g,"-0900").replace(/\bAKDT\b/g,"-0800").replace(/\bAST\b/g,"-0400");let n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function yA(e,t){let r=new Date(Date.parse(e));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=e.substring(9);return e.includes("Z")||n.includes("-")||n.includes("+")?lt.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):lt.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}lt.minitz=lt;function xA(e){if(e===void 0&&(e={}),delete e.name,e.legacyMode=e.legacyMode===void 0?!0:e.legacyMode,e.paused=e.paused===void 0?!1:e.paused,e.maxRuns=e.maxRuns===void 0?1/0:e.maxRuns,e.catch=e.catch===void 0?!1:e.catch,e.interval=e.interval===void 0?0:parseInt(e.interval,10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset,10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new je(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new je(e.stopAt,e.timezone)),e.interval!==null){if(isNaN(e.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(e.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(e.utcOffset!==void 0){if(isNaN(e.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(e.utcOffset<-870||e.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(e.utcOffset!==void 0&&e.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(e.unref!==!0&&e.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return e}var Ku=32,yo=31|Ku,md=[1,2,4,16,16];function ut(e,t){this.pattern=e,this.timezone=t,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}ut.prototype.parse=function(){if(!(typeof this.pattern=="string"||this.pattern.constructor===String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let e=this.pattern.replace(/\s+/g," ").split(" ");if(e.length<5||e.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(e.length===5&&e.unshift("0"),e[3].indexOf("L")>=0&&(e[3]=e[3].replace("L",""),this.lastDayOfMonth=!0),e[3]=="*"&&(this.starDOM=!0),e[4].length>=3&&(e[4]=this.replaceAlphaMonths(e[4])),e[5].length>=3&&(e[5]=this.replaceAlphaDays(e[5])),e[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let t=new je(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds()),e[1]=e[1].replace("?",t.getMinutes()),e[2]=e[2].replace("?",t.getHours()),this.starDOM||(e[3]=e[3].replace("?",t.getDate())),e[4]=e[4].replace("?",t.getMonth()+1),this.starDOW||(e[5]=e[5].replace("?",t.getDay()))}this.throwAtIllegalCharacters(e),this.partToArray("second",e[0],0,1),this.partToArray("minute",e[1],0,1),this.partToArray("hour",e[2],0,1),this.partToArray("day",e[3],-1,1),this.partToArray("month",e[4],-1,1),this.partToArray("dayOfWeek",e[5],0,yo),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};ut.prototype.partToArray=function(e,t,r,n){let i=this[e],o=e==="day"&&this.lastDayOfMonth;if(t===""&&!o)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return i.fill(n);let s=t.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(e,s[a],r,n);else t.indexOf("-")!==-1&&t.indexOf("/")!==-1?this.handleRangeWithStepping(t,e,r,n):t.indexOf("-")!==-1?this.handleRange(t,e,r,n):t.indexOf("/")!==-1?this.handleStepping(t,e,r,n):t!==""&&this.handleNumber(t,e,r,n)};ut.prototype.throwAtIllegalCharacters=function(e){for(let t=0;t<e.length;t++)if((t===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(e[t]))throw new TypeError("CronPattern: configuration entry "+t+" ("+e[t]+") contains illegal characters.")};ut.prototype.handleNumber=function(e,t,r,n){let i=this.extractNth(e,t),o=parseInt(i[0],10)+r;if(isNaN(o))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,o,i[1]||n)};ut.prototype.setPart=function(e,t,r){if(!Object.prototype.hasOwnProperty.call(this,e))throw new TypeError("CronPattern: Invalid part specified: "+e);if(e==="dayOfWeek"){if(t===7&&(t=0),(t<0||t>6)&&t!=="L")throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+t);this.setNthWeekdayOfMonth(t,r);return}if(e==="second"||e==="minute"){if(t<0||t>=60)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="hour"){if(t<0||t>=24)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="day"){if(t<0||t>=31)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="month"&&(t<0||t>=12))throw new RangeError("CronPattern: Invalid value for "+e+": "+t);this[e][t]=r};ut.prototype.handleRangeWithStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(o===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=o;if(s=parseInt(s,10)+r,a=parseInt(a,10)+r,l=parseInt(l,10),isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(l))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(l===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(l>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let u=s;u<=a;u+=l)this.setPart(t,u,i[1]||n)};ut.prototype.extractNth=function(e,t){let r=e,n;if(r.includes("#")){if(t!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]};ut.prototype.handleRange=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("-");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let s=parseInt(o[0],10)+r,a=parseInt(o[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let l=s;l<=a;l++)this.setPart(t,l,i[1]||n)};ut.prototype.handleStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("/");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");let s=0;o[0]!=="*"&&(s=parseInt(o[0],10)+r);let a=parseInt(o[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[t].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[t].length+")");for(let l=s;l<this[t].length;l+=a)this.setPart(t,l,i[1]||n)};ut.prototype.replaceAlphaDays=function(e){return e.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")};ut.prototype.replaceAlphaMonths=function(e){return e.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")};ut.prototype.handleNicknames=function(e){let t=e.trim().toLowerCase();return t==="@yearly"||t==="@annually"?"0 0 1 1 *":t==="@monthly"?"0 0 1 * *":t==="@weekly"?"0 0 * * 0":t==="@daily"?"0 0 * * *":t==="@hourly"?"0 * * * *":e};ut.prototype.setNthWeekdayOfMonth=function(e,t){if(t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|Ku;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|md[t-1];else if(t===yo)this.dayOfWeek[e]=yo;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${t}`)};var dd=[31,28,31,30,31,30,31,31,30,31,30,31],nr=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function je(e,t){if(this.tz=t,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof je)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}je.prototype.isNthWeekdayOfMonth=function(e,t,r,n){let o=new Date(Date.UTC(e,t,r)).getUTCDay(),s=0;for(let a=1;a<=r;a++)new Date(Date.UTC(e,t,a)).getUTCDay()===o&&s++;if(n&yo&&md[s-1]&n)return!0;if(n&Ku){let a=new Date(Date.UTC(e,t+1,0)).getUTCDate();for(let l=r+1;l<=a;l++)if(new Date(Date.UTC(e,t,l)).getUTCDay()===o)return!1;return!0}return!1};je.prototype.fromDate=function(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let t=lt.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=t.s,this.minute=t.i,this.hour=t.h,this.day=t.d,this.month=t.m-1,this.year=t.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()};je.prototype.fromCronDate=function(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms};je.prototype.apply=function(){if(this.month>11||this.day>dd[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1};je.prototype.fromString=function(e){return this.fromDate(lt.fromTZISO(e,this.tz))};je.prototype.findNext=function(e,t,r,n){let i=this[t],o;r.lastDayOfMonth&&(this.month!==1?o=dd[this.month]:o=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&t=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[t]+n;a<r[t].length;a++){let l=r[t][a];if(t==="day"&&r.lastDayOfMonth&&a-n==o&&(l=!0),t==="day"&&!r.starDOW){let u=r.dayOfWeek[(s+(a-n-1))%7];if(u&&u&yo)u=this.isNthWeekdayOfMonth(this.year,this.month,a-n,u);else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);e.legacyMode&&!r.starDOM?l=l||u:l=l&&u}if(l)return this[t]=a-n,i!==this[t]?2:1}return 3};je.prototype.recurse=function(e,t,r){let n=this.findNext(t,nr[r][0],e,nr[r][2]);if(n>1){let i=r+1;for(;i<nr.length;)this[nr[i][0]]=-nr[i][2],i++;if(n===3)return this[nr[r][1]]++,this[nr[r][0]]=-nr[r][2],this.apply(),this.recurse(e,t,0);if(this.apply())return this.recurse(e,t,r-1)}return r+=1,r>=nr.length?this:this.year>=3e3?null:this.recurse(e,t,r)};je.prototype.increment=function(e,t,r){return this.second+=t.interval>1&&r?t.interval:1,this.ms=0,this.apply(),this.recurse(e,t,0)};je.prototype.getDate=function(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):lt(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};je.prototype.getTime=function(){return this.getDate().getTime()};function ha(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function bA(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var hd=30*1e3,xo=[];function we(e,t,r){if(!(this instanceof we))return new we(e,t,r);let n,i;if(ha(t))i=t;else if(typeof t=="object")n=t;else if(t!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(ha(r))i=r;else if(typeof r=="object")n=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=n?n.name:void 0,this.options=xA(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:void 0},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new je(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new ut(e,this.options.timezone),this.name){if(xo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");xo.push(this)}return i!==void 0&&(this.fn=i,this.schedule()),this}we.prototype.nextRun=function(e){let t=this._next(e);return t?t.getDate():null};we.prototype.nextRuns=function(e,t){e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun;for(;e--&&(n=this.nextRun(n));)r.push(n);return r};we.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};we.prototype.isRunning=function(){let e=this.nextRun(this._states.currentRun),t=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return t&&r&&n&&e!==null};we.prototype.isStopped=function(){return this._states.kill};we.prototype.isBusy=function(){return this._states.blocking};we.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};we.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};we.prototype.msToNext=function(e){e=e||new Date;let t=this._next(e);return t?t.getTime()-e.getTime():null};we.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=xo.indexOf(this);e>=0&&xo.splice(e,1)};we.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};we.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};we.prototype.schedule=function(e){if(e&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");e&&(this.fn=e);let t=this.msToNext(),r=this.nextRun(this._states.currentRun);return t===null||r===null?this:(t>hd&&(t=hd),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&bA(this._states.currentTimeout),this)};we.prototype._trigger=async function(e){if(this._states.blocking=!0,this._states.currentRun=new je(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(t){ha(this.options.catch)&&this.options.catch(t,this)}else await this.fn(this,this.options.context);this._states.previousRun=new je(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};we.prototype.trigger=async function(){await this._trigger()};we.prototype._checkTrigger=function(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e,n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns--,this._trigger()):r&&n&&ha(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};we.prototype._next=function(e){let t=!!(e||this._states.currentRun);e=new je(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let r=this._states.once||new je(e,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,t);return this._states.once&&this._states.once.getTime()<=e.getTime()||r===null||this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};we.Cron=we;we.scheduledJobs=xo;var Gn=Ge(gd(),1),xd=Ge(yd(),1);function ic(e){if(typeof e!="number")throw new TypeError("Expected a number");let t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}var vA=(e,t)=>t===1?e:`${e}s`,wA=1e-7;function ma(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let l=Math.floor(s*10**a+wA);return(Math.round(l)/10**a).toFixed(a)},i=(s,a,l,u)=>{if((r.length===0||!t.colonNotation)&&s===0&&!(t.colonNotation&&l==="m"))return;u=(u||s||"0").toString();let c,f;if(t.colonNotation){c=r.length>0?":":"",f="";let p=u.includes(".")?u.split(".")[0].length:u.length,h=r.length>0?2:1;u="0".repeat(Math.max(0,h-p))+u}else c="",f=t.verbose?" "+vA(a,s):l;r.push(c+u+f)},o=ic(e);if(i(Math.trunc(o.days/365),"year","y"),i(o.days%365,"day","d"),i(o.hours,"hour","h"),i(o.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(o.seconds,"second","s"),t.formatSubMilliseconds)i(o.milliseconds,"millisecond","ms"),i(o.microseconds,"microsecond","\xB5s"),i(o.nanoseconds,"nanosecond","ns");else{let s=o.milliseconds+o.microseconds/1e3+o.nanoseconds/1e6,a=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,l=s>=1?Math.round(s):Math.ceil(s),u=a?s.toFixed(a):l;i(Number.parseFloat(u),"millisecond","ms",u)}else{let s=e/1e3%60,a=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,l=n(s,a),u=t.keepDecimalsOnWholeSeconds?l:l.replace(/\.0+$/,"");i(Number.parseFloat(u),"second","s",u)}if(r.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return r[0];if(typeof t.unitCount=="number"){let s=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(s)}return t.colonNotation?r.join(""):r.join(" ")}Gn.default.extend(xd.default);var bo=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=we(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let t=this.jobFunction(this.nextExecutionUnix);t instanceof Promise&&t.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var vr={years:(e=1)=>e*3154e7,months:(e=1)=>e*2628e6,weeks:(e=1)=>e*6048e5,days:(e=1)=>e*864e5,hours:(e=1)=>e*36e5,minutes:(e=1)=>e*6e4,seconds:(e=1)=>e*1e3},oc=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(vr.years(e.years)),e.months&&r(vr.months(e.months)),e.weeks&&r(vr.weeks(e.weeks)),e.days&&r(vr.days(e.days)),e.hours&&r(vr.hours(e.hours)),e.minutes&&r(vr.minutes(e.minutes)),e.seconds&&r(vr.seconds(e.seconds)),t},sc=e=>ma(e);var ac=class{constructor(){this.status="stopped",this.cronjobs=new ct.ObjectMap}addCronjob(t,r){let n=new bo(this,t,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(t){t.stop(),this.cronjobs.remove(t)}start(){if(this.status!=="started"){this.status="started";for(let t of this.cronjobs.getArray())t.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new fe.Timeout(0);do{let t;for(let r of this.cronjobs.getArray())r.checkExecution(),(!t||r.getTimeToNextExecution()<t.getTimeToNextExecution())&&(t=r);t?(this.executionTimeout=new fe.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${sc(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new fe.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let t of this.cronjobs.getArray())t.stop()}};var lc=class e extends Date{static fromMillis(t){return new e(t)}static fromDate(t){return new e(t.getTime())}static fromEuropeanDate(t){let r=/(.*)\.(.*)\.(.*)/.exec(t),i=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(i)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let i=/(.*)\.(.*)\.(.*)/.exec(t),o=u=>`0${u}`.slice(-2),s=`${i[3]}-${o(i[2])}-${o(i[1])}T${r}`,l=Gn.default(s).toDate().getTime();return new e(l)}constructor(t=Date.now()){super(t)}exportToEuropeanDate(){let t=this.exportToUnits();return`${t.dayString}.${t.monthString}.${t.yearString}`}exportToHyphedSortableDate(){let t=this.exportToUnits();return`${t.yearString}-${t.monthString}-${t.dayString}`}exportToUnits(){let t=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:t[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(t){return Gn.default(this.getTime()).format(t)}isToday(){return Gn.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=oc(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var uc=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}};var cc=class{constructor(t){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=t}start(){this.status="started";let t=new Date;this.statusAuthorization=t,(async()=>{for(;this.status==="started"&&this.statusAuthorization===t;)await fe.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(t){this.intervalJobs.push(t)}executeIntervalJobs(){for(let t of this.intervalJobs)t()}};var Qn=class e{static fromMilliSeconds(t){return new e(t)}static fromTimeStamp(t){let r=new e;return r.change=r.milliSeconds-t.milliSeconds,r}constructor(t){this.change=null,t?typeof t=="number"&&(this.date=new Date(t)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(t,r=0){return this.milliSeconds<t.milliSeconds-r}isOlderThan(t,r=0){return this.milliSeconds+r<t.milliSeconds}isYoungerThanOtherTimeStamp(t,r=0){return this.milliSeconds>t.milliSeconds+r}isYoungerThanMilliSeconds(t){let n=new e().epochtime-t,i=new e(n);return this.isYoungerThanOtherTimeStamp(i)}};var fc=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=te.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Qn;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Qn.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}};var mc=Ge(hc(),1);var dc=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=te.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=te.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),fe.delayFor(t.timeout).then(()=>{throw new Error("Timeout reached")})]);t.executionDeferred.resolve(r)}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{try{if(n.timeout){let i=await Promise.race([n.funcToExecute(),fe.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(i)}else{let i=await n.funcToExecute();n.executionDeferred.resolve(i)}}catch(i){n.executionDeferred.reject(i)}});await Promise.all(r)}};var gc=class{constructor(t=16){this.hasSpace=new xe.rxjs.Subject,this.itemsAvailable=new xe.rxjs.Subject,this.data=[],this.highWaterMark=t}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}checkSpaceAvailable(){return this.data.length<this.highWaterMark}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable())t();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),t()})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0)t();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),t()})}})}};var vo=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var Id=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),sn=class e{constructor(){this.fastMap=new vo,this.eventSubject=new xe.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=Id("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var wo=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,i){this.destructionTimer=new on.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new te.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=i,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&fe.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var yc=class{constructor(t,r={}){this.interestObjectMap=new sn,this.interestObservable=new xe.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),i,o=new wo(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===o.comparisonString&&(console.log("info",`interest already exists for ${o.comparisonString}`),s=!0,i=a,i.renew())}),i||(i=o,this.interestObjectMap.add(i)),this.interestObservable.push(i),i}removeInterest(t){let r=this.interestObjectMap.findOneAndRemoveSync(n=>t.comparisonString===n.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return!!this.interestObjectMap.findSync(n=>n.comparisonString===t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestObjectMap.findSync(i=>i.comparisonString===r)}};var xc=class{constructor(t){this.array=[],this.arrayLimit=t}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}};var bc=class{constructor(){this.referenceObjectMap=new sn}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var vc=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new nn.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=te.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var wc=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new on.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||t()}add(t){this.storageArray.push(t),this.checkAggregationStatus()}};var Sc=class{constructor(){this.symbolTree=new mc.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(t){this.symbolTree.ancestorsIterator()}treeIterator(t,r){return this.symbolTree.treeIterator(t)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=this.treeIterator(t,{});for(let n of r)console.log(n)}fromJsonWithHierachy(t){}};var ko={};oe(ko,{base64ToUint8Array:()=>qA,ensurePureUint8Array:()=>VA,isBufferLike:()=>WA,isUint8Array:()=>HA,uInt8ArrayExtras:()=>UA,uInt8ArrayToBase64:()=>zA});var an={};oe(an,{areUint8ArraysEqual:()=>_A,assertUint8Array:()=>ir,base64ToString:()=>RA,base64ToUint8Array:()=>Nd,compareUint8Arrays:()=>IA,concatUint8Arrays:()=>CA,hexToUint8Array:()=>$A,isUint8Array:()=>Md,stringToBase64:()=>NA,stringToUint8Array:()=>Dd,toUint8Array:()=>TA,uint8ArrayToBase64:()=>Fd,uint8ArrayToHex:()=>BA,uint8ArrayToString:()=>Pd});var AA=Object.prototype.toString,EA="[object Uint8Array]";function Md(e){return e?e.constructor===Uint8Array?!0:AA.call(e)===EA:!1}function ir(e){if(!Md(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function TA(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new TypeError(`Unsupported value, got \`${typeof e}\`.`)}function CA(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((i,o)=>i+o.length,0);let r=new Uint8Array(t),n=0;for(let i of e)ir(i),r.set(i,n),n+=i.length;return r}function _A(e,t){if(ir(e),ir(t),e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function IA(e,t){ir(e),ir(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let i=e[n]-t[n];if(i!==0)return Math.sign(i)}return Math.sign(e.length-t.length)}var OA=new globalThis.TextDecoder;function Pd(e){return ir(e),OA.decode(e)}function So(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var MA=new globalThis.TextEncoder;function Dd(e){return So(e),MA.encode(e)}function PA(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function DA(e){return e.replaceAll("-","+").replaceAll("_","/")}var FA=65535;function Fd(e,{urlSafe:t=!1}={}){ir(e);let r;if(e.length<FA)r=globalThis.btoa(String.fromCodePoint.apply(this,e));else{r="";for(let n of e)r+=String.fromCodePoint(n);r=globalThis.btoa(r)}return t?PA(r):r}function Nd(e){return So(e),Uint8Array.from(globalThis.atob(DA(e)),t=>t.codePointAt(0))}function NA(e,{urlSafe:t=!1}={}){return So(e),Fd(Dd(e),{urlSafe:t})}function RA(e){return So(e),Pd(Nd(e))}var LA=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function BA(e){ir(e);let t="";for(let r=0;r<e.length;r++)t+=LA[e[r]];return t}var Od={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15};function $A(e){if(So(e),e.length%2!==0)throw new Error("Invalid Hex string length.");let t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++){let i=Od[e[n*2]],o=Od[e[n*2+1]];if(i===void 0||o===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=i<<4|o}return r}var UA=an;function zA(e){return an.uint8ArrayToBase64(e)}function qA(e){return an.base64ToUint8Array(e)}var HA=e=>an.isUint8Array(e);function WA(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function VA(e){let t=new Uint8Array(e.length);return t.set(e),t}var ga={};oe(ga,{Guard:()=>Ao,GuardSet:()=>Eo,passGuardsOrReject:()=>YA});var Ao=class{constructor(t,r){this.guardFunction=t,this.guardoOptions=r}async exec(t){return await this.guardFunction(t)}async getFailedHint(t){return await this.exec(t)?null:this.guardoOptions.failedHint}};var Eo=class extends Ao{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let o of this.guards){let s=o.exec(t);if(r.mode==="serial"&&await s,n.push(s),r.stopOnFail&&!await s)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(t,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(t,r)).every(i=>i)}async anyGuardsPass(t){return(await this.execAllWithData(t,{mode:"parallel",stopOnFail:!1})).some(n=>n)}getFailedHint(t){for(let r of this.guards){let n=r.getFailedHint(t);if(n)return n}}};var YA=async(e,t)=>{if(!await new Eo(t).allGuardsPass(e))throw new Error("Guard failed")};var jo={};oe(jo,{WebRequest:()=>Rf});var ln={};oe(ln,{Smartenv:()=>To});var To=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=te.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Ve={};oe(Ve,{Smartjson:()=>_f,deepEqualJsonLStrings:()=>kI,deepEqualObjects:()=>rb,foldDec:()=>SI,parse:()=>Bo,parseBase64:()=>wI,parseJsonL:()=>xI,stringify:()=>xi,stringifyBase64:()=>vI,stringifyPretty:()=>bI});var Cr={};oe(Cr,{Base64:()=>Ra,Domain:()=>La,GitRepo:()=>Ba,base64:()=>hi,create:()=>of,docker:()=>sf,indent:()=>uf,normalize:()=>cf,type:()=>ff});var of={};oe(of,{createCryptoRandomString:()=>CC,createRandomString:()=>TC});var rx=Ge(zs(),1),nx=Ge(Ay(),1);var Oy="3.7.7",oC=Oy,pi=typeof Buffer=="function",Ey=typeof TextDecoder=="function"?new TextDecoder:void 0,Ty=typeof TextEncoder=="function"?new TextEncoder:void 0,sC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Do=Array.prototype.slice.call(sC),Pa=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(Do),aC=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Je=String.fromCharCode.bind(String),Cy=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),My=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Py=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Dy=e=>{let t,r,n,i,o="",s=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=Do[t>>18&63]+Do[t>>12&63]+Do[t>>6&63]+Do[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},ef=typeof btoa=="function"?e=>btoa(e):pi?e=>Buffer.from(e,"binary").toString("base64"):Dy,Xc=pi?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(Je.apply(null,e.subarray(n,n+4096)));return ef(r.join(""))},Da=(e,t=!1)=>t?My(Xc(e)):Xc(e),lC=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Je(192|t>>>6)+Je(128|t&63):Je(224|t>>>12&15)+Je(128|t>>>6&63)+Je(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Je(240|t>>>18&7)+Je(128|t>>>12&63)+Je(128|t>>>6&63)+Je(128|t&63)}},uC=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Fy=e=>e.replace(uC,lC),_y=pi?e=>Buffer.from(e,"utf8").toString("base64"):Ty?e=>Xc(Ty.encode(e)):e=>ef(Fy(e)),fi=(e,t=!1)=>t?My(_y(e)):_y(e),Iy=e=>fi(e,!0),cC=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,fC=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return Je((r>>>10)+55296)+Je((r&1023)+56320);case 3:return Je((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Je((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ny=e=>e.replace(cC,fC),Ry=e=>{if(e=e.replace(/\s+/g,""),!aC.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o<e.length;)t=Pa[e.charAt(o++)]<<18|Pa[e.charAt(o++)]<<12|(n=Pa[e.charAt(o++)])<<6|(i=Pa[e.charAt(o++)]),r+=n===64?Je(t>>16&255):i===64?Je(t>>16&255,t>>8&255):Je(t>>16&255,t>>8&255,t&255);return r},tf=typeof atob=="function"?e=>atob(Py(e)):pi?e=>Buffer.from(e,"base64").toString("binary"):Ry,Ly=pi?e=>Cy(Buffer.from(e,"base64")):e=>Cy(tf(e).split("").map(t=>t.charCodeAt(0))),By=e=>Ly($y(e)),pC=pi?e=>Buffer.from(e,"base64").toString("utf8"):Ey?e=>Ey.decode(Ly(e)):e=>Ny(tf(e)),$y=e=>Py(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Kc=e=>pC($y(e)),hC=e=>{if(typeof e!="string")return!1;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},jy=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Uy=function(){let e=(t,r)=>Object.defineProperty(String.prototype,t,jy(r));e("fromBase64",function(){return Kc(this)}),e("toBase64",function(t){return fi(this,t)}),e("toBase64URI",function(){return fi(this,!0)}),e("toBase64URL",function(){return fi(this,!0)}),e("toUint8Array",function(){return By(this)})},zy=function(){let e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,jy(r));e("toBase64",function(t){return Da(this,t)}),e("toBase64URI",function(){return Da(this,!0)}),e("toBase64URL",function(){return Da(this,!0)})},mC=()=>{Uy(),zy()},Fo={version:Oy,VERSION:oC,atob:tf,atobPolyfill:Ry,btoa:ef,btoaPolyfill:Dy,fromBase64:Kc,toBase64:fi,encode:fi,encodeURI:Iy,encodeURL:Iy,utob:Fy,btou:Ny,decode:Kc,isValid:hC,fromUint8Array:Da,toUint8Array:By,extendString:Uy,extendUint8Array:zy,extendBuiltins:mC};var Wy=Ge(Hy(),1);function Fa(e){let t=(0,Wy.default)(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}var nf=Ge(tx(),1),t6=new To;var TC=(e,t,r)=>nf.default(e,t,r),CC=()=>rx.uni();var sf={};oe(sf,{makeEnvObject:()=>_C});var _C=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let i=r.exec(e[n]);t[i[1]]=i[2]}return t};var uf={};oe(uf,{indent:()=>OC,indentWithPrefix:()=>MC,normalize:()=>PC});var af=e=>{let t=e.split(`
|
|
39
|
+
`);return IC(t)},lf=e=>{let t="";for(let r of e)t=t+r+`
|
|
40
|
+
`;return t},IC=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},OC=(e,t)=>{let r=af(e);for(let i of r)i=" ".repeat(t)+i;return lf(r)},MC=(e,t)=>{let r,n=af(e),i=[];for(let o of n)i.push(t+o);return r=lf(i),r},PC=e=>{let t,r=af(e),n,i=/^(\s*)/,o=/^(\s*)$/;for(let a of r){let l=i.exec(a)[1];(typeof n>"u"||l.length<n)&&!o.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=lf(s),t};var cf={};oe(cf,{replaceAll:()=>ix,standard:()=>DC});var ix=(e,t,r)=>e.replace(new RegExp(t,"g"),r),DC=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=Fa(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
|
|
41
|
+
`)),(!t||t.replaceTabs)&&(r=ix(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var ff={};oe(ff,{isBase64:()=>NC,isUtf8:()=>FC});var Ra=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=hi.decode(t);break;case"base64uri":this.refString=hi.decode(t)}}get simpleString(){return this.refString}get base64String(){return hi.encode(this.refString)}get base64UriString(){return hi.encodeUri(this.refString)}},hi={encode:e=>Fo.encode(e),encodeUri:e=>Fo.encodeURI(e),decode:e=>Fo.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var FC=e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},NC=e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="};var La=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=nx.parse(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let i=r[n-1];this["level"+n.toString()]=i,this.fullName===""?this.fullName=i:this.fullName=i+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(t);return n.reverse(),n.pop(),n.filter(function(o){return o!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var Ba=class{constructor(t,r){let n=RC(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=ox(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=ox(this.host,this.user,this.repo,this.accessToken,"https")}},RC=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},ox=function(e,t,r,n="",i){let o;switch(n!==""&&(n=n+"@"),i){case"https":o="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":o="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+i+" not known");break}return o};var Tf=Ge(Yx(),1),Qx=Ge(Jx(),1);var Zx=Qx.default;function fI(e){return btoa(String.fromCharCode(...e))}function pI(e){return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function Xx(e,t){return JSON.stringify(e,hI,t)}function Kx(e){return JSON.parse(e,mI)}var hI=(e,t)=>{if(gI(t)){let r;if("data"in t&&eb(t.data))if(t.data.length>0)r=new Uint8Array(t.data);else return"";else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+fI(r)}}return t},mI=(e,t)=>{if(dI(t)&&Cf(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return pI(r)}return t};function dI(e){return tb(e)&&e.type==="EncodedBuffer"&&Cf(e.data)}function gI(e){return tb(e)&&e.type==="Buffer"&&(eb(e.data)||Cf(e.data))||e instanceof Uint8Array}function eb(e){return Array.isArray(e)}function Cf(e){return typeof e=="string"}function tb(e){return typeof e=="object"&&e!==null}var Bo=Kx,xI=e=>e.trim().split(`
|
|
42
|
+
`).reduce((n,i)=>(i.trim().length>0&&n.push(JSON.parse(i)),n),[]),xi=(e,t,r={})=>{let n=Xx(e);return e=JSON.parse(n),Zx(e,r)},bI=e=>{let t=xi(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},vI=(...e)=>{let t=xi(...e);return Cr.base64.encodeUri(t)},wI=e=>{let t=Cr.base64.decode(e);return Bo(t)},_f=class e{static enfoldFromObject(t){let r=new this;for(let n in t)r.saveableProperties.indexOf(n)!==-1&&(r[n]=t[n]);return r}static enfoldFromJson(t){let r=Bo(t);return this.enfoldFromObject(r)}foldToObject(){let t={},r=[];for(let n of this.saveableProperties){let i=this[n];if(i instanceof e){if(r.includes(i))throw new Error("cycle detected");r.push(i),i=i.foldToObject()}t[n]=Tf.default(i)}return t}foldToJson(){let t=this.foldToObject();return xi(t)}},SI=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},rb=(e,t)=>{let r=xi(e),n=xi(t);return r===n},kI=(e,t)=>{let r=[];e.split(`
|
|
43
|
+
`).forEach(i=>{i&&r.push(Bo(i))});let n=[];return t.split(`
|
|
44
|
+
`).forEach(i=>{i&&n.push(Bo(i))}),rb(r,n)};var Ir={};oe(Ir,{TypedrequestCache:()=>Nf,WebStore:()=>$o});var Ja={};oe(Ja,{deleteDB:()=>MI,openDB:()=>OI,unwrap:()=>Ya,wrap:()=>ar});var Mf=(e,t)=>t.some(r=>e instanceof r),nb,ib;function AI(){return nb||(nb=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function EI(){return ib||(ib=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Pf=new WeakMap,If=new WeakMap,Ga=new WeakMap;function TI(e){let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{r(ar(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return Ga.set(t,e),t}function CI(e){if(Pf.has(e))return;let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{r(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Pf.set(e,t)}var Df={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return Pf.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ar(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function lb(e){Df=e(Df)}function _I(e){return EI().includes(e)?function(...t){return e.apply(Ya(this),t),ar(this.request)}:function(...t){return ar(e.apply(Ya(this),t))}}function II(e){return typeof e=="function"?_I(e):(e instanceof IDBTransaction&&CI(e),Mf(e,AI())?new Proxy(e,Df):e)}function ar(e){if(e instanceof IDBRequest)return TI(e);if(If.has(e))return If.get(e);let t=II(e);return t!==e&&(If.set(e,t),Ga.set(t,e)),t}var Ya=e=>Ga.get(e);function OI(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=ar(s);return n&&s.addEventListener("upgradeneeded",l=>{n(ar(s.result),l.oldVersion,l.newVersion,ar(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function MI(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),ar(r).then(()=>{})}var PI=["get","getKey","getAll","getAllKeys","count"],DI=["put","add","delete","clear"],Of=new Map;function ob(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Of.get(t))return Of.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=DI.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||PI.includes(r)))return;let o=async function(s,...a){let l=this.transaction(s,i?"readwrite":"readonly"),u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),i&&l.done]))[0]};return Of.set(t,o),o}lb(e=>({...e,get:(t,r,n)=>ob(t,r)||e.get(t,r,n),has:(t,r)=>!!ob(t,r)||e.has(t,r)}));var FI=["continue","continuePrimaryKey","advance"],sb={},Ff=new WeakMap,ub=new WeakMap,NI={get(e,t){if(!FI.includes(t))return e[t];let r=sb[t];return r||(r=sb[t]=function(...n){Ff.set(this,ub.get(this)[t](...n))}),r}};async function*RI(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,NI);for(ub.set(r,t),Ga.set(r,Ya(t));t;)yield r,t=await(Ff.get(r)||t.continue()),Ff.delete(r)}function ab(e,t){return t===Symbol.asyncIterator&&Mf(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Mf(e,[IDBIndex,IDBObjectStore])}lb(e=>({...e,get(t,r,n){return ab(t,r)?RI:e.get(t,r,n)},has(t,r){return ab(t,r)||e.has(t,r)}}));var $o=class{constructor(t){this.initCalled=!1,this.readyDeferred=te.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new ln.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Ja.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var Nf=class{constructor(t="default"){this.webstore=new $o({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Ve.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var Rf=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new Ir.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let i=await(await this.request(t,{method:"GET",useCache:r})).text();return Ve.parse(i)}async postJson(t,r,n=!1){let o=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:Ve.stringify(r),useCache:n})).text();return Ve.parse(o)}async putJson(t,r,n=!1){let o=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:Ve.stringify(r)})).text();return Ve.parse(o)}async deleteJson(t,r=!1){let i=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Ve.parse(i)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;fe.delayFor(r.timeoutMs).then(()=>{n.abort()});let i=te.defer(),o=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);i.resolve(new Response(a,{}))}else i.resolve(null);let s=await fetch(t,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await i.promise?(o=!0,i.promise):a);if(r.useCache&&await i.promise&&s.status===500&&(o=!0,s=await i.promise),!o&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(t,a)}return this.log(`${t} answers with status: ${s.status}`),s}async requestMultiEndpoint(t,r){let n,i=0;Array.isArray(t)?n=t:n=[t];let o=[],s=async u=>{o.push(u),u==="429"&&(console.log("got 429, so waiting a little bit."),await fe.delayFor(Math.floor(Math.random()*1001)+1e3));let c=0;for(let f of o)f===u&&c++;c>2*n.length*i&&i++},a=async u=>{if(!u)throw new Error("request failed permanently");this.log(`Getting ${u} with method ${r.method}`);let c=await fetch(u,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${u} answers with status: ${c.status}`),c.status>=200&&c.status<300?c:(await s(c.status.toString()),await a(n[i]))};return await a(n[i])}log(t){this.options.logging&&console.log(t)}};var lr=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Za=class{async passGuards(t,r){let n=new ga.GuardSet(t);if(!await n.allGuardsPass(r)){let o=await n.getFailedHint(r);throw new lr(`guard failed: ${o}`,{failedHint:o})}}};var Lf=class{constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=new Za,i=await this.handlerFunction(t.request,n).catch(o=>{o instanceof lr?r=o:console.log(o)});return r&&(t.error={text:r.errorText,data:r.errorData}),i&&(t.response=i),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var Uo=class{constructor(){this.routerMap=new ct.ObjectMap,this.handlerMap=new ct.ObjectMap,this.registeredVirtualStreams=new ct.ObjectMap,this.fireEventInterestMap=new ct.InterestMap(t=>t)}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(i=>i.method===t),n||this.routerMap.getArray().forEach(i=>{!n&&!r.includes(i)&&(n=i.getTypedHandlerForMethod(t,r))}),n}async routeAndAddResponse(t,r=!1){if(t=Ut.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let n=await this.handleStreamTypedRequest(t);return n.localData=null,n}if(t?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(t.method);return n?(t=await n.addResponse(t),t.localData=null,t=Ut.encodePayloadForNetwork(t,{typedrouter:this}),t):(console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=Ut.encodePayloadForNetwork(t,{typedrouter:this}),t)}else return t?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async i=>i.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var Ut=class e{static encodePayloadForNetwork(t,r,n,i=[]){return!t||ko.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||i.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((o,s)=>e.encodePayloadForNetwork(o,r,n||t,i.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((o,[s,a])=>{let l=i.concat(s);return o[s]=e.encodePayloadForNetwork(a,r,n||t,l),o},{}):t}static decodePayloadFromNetwork(t,r){if(ko.isBufferLike(t)||t instanceof Uo)return t;if(t!==null&&typeof t=="object")if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let i of t)n.push(e.decodePayloadFromNetwork(i,r));return n}else return Object.keys(t).reduce((n,i)=>(n[i]=e.decodePayloadFromNetwork(t[i],r),n),{});else return t}constructor(){this.streamId=gn.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new ct.BackpressuredArray(16),this.receiveBackpressuredArray=new ct.BackpressuredArray(16)}async workOnQueue(){if(this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1;for(await(async()=>{let o=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:gn.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});o&&o.response&&(n=o.response.backpressure,r=o.response.next)})();this.sendBackpressuredArray.data.length>0||r;){let o;this.sendBackpressuredArray.data.length>0&&(o=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:gn.uni(),cycle:"request",mainPurpose:o?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...o?{chunkData:o}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),t=this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(t.request.chunkData),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){await fe.delayFor(0);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await fe.delayFor(1e3);await fe.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:gn.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:!0},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t){let r=t.getReader(),n=!1;for(;!n;){let{value:i,done:o}=await r.read();i&&await this.sendData(i),n=o}}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive;)await r.write(await this.fetchData())}};var Bf=class{constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let i=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),o;return r?o=await r.interestFullfilled:i?o=i:o=t,o}};var BI=new jo.WebRequest,zo=class{constructor(t,r){typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n={method:this.method,request:t,response:null,correlation:{id:gn.uni(),phase:"request"}};n=Ut.encodePayloadForNetwork(n,{sendMethod:o=>this.postTrObject(o)});let i;return i=await this.postTrObject(n,r),i=Ut.decodePayloadFromNetwork(i,{sendMethod:o=>this.postTrObject(o)}),i.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await BI.postJson(this.urlEndPoint,t,r):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new lr(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await fe.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function pb(e){return e&&typeof e.then=="function"}var $I=Promise.resolve(!1),tH=Promise.resolve(!0),zt=Promise.resolve();function Xa(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function hb(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function qo(){return Math.random().toString(36).substring(2)}var $f=0;function ur(){var e=Date.now()*1e3;return e<=$f&&(e=$f+1),$f=e,e}var jI=ur,UI="native";function zI(e){var t={time:ur(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function qI(e){e.bc.close(),e.subFns=[]}function HI(e,t){try{return e.bc.postMessage(t,!1),zt}catch(r){return Promise.reject(r)}}function WI(e,t){e.messagesCallback=t}function VI(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function YI(){return 150}var mb={create:zI,close:qI,onMessage:WI,postMessage:HI,canBeUsed:VI,type:UI,averageResponseTime:YI,microSeconds:jI};var bi=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,db()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,GI(this)},0))}clear(){this.map.clear()}};function GI(e){let t=db()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)return;let i=n[0];if(n[1]<t)e.map.delete(i);else return}}function db(){return Date.now()}function vi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var JI=ur,QI="pubkey.broadcast-channel-0-",cr="messages",Ka={durability:"relaxed"},ZI="idb";function gb(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function jf(e){e.commit&&e.commit()}function XI(e){var t=gb(),r=QI+e,n=t.open(r);return n.onupgradeneeded=function(i){var o=i.target.result;o.createObjectStore(cr,{keyPath:"id",autoIncrement:!0})},new Promise(function(i,o){n.onerror=function(s){return o(s)},n.onsuccess=function(){i(n.result)}})}function KI(e,t,r){var n=Date.now(),i={uuid:t,time:n,data:r},o=e.transaction([cr],"readwrite",Ka);return new Promise(function(s,a){o.oncomplete=function(){return s()},o.onerror=function(u){return a(u)};var l=o.objectStore(cr);l.add(i),jf(o)})}function eO(e,t){var r=e.transaction(cr,"readonly",Ka),n=r.objectStore(cr),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(o);return new Promise(function(l,u){s.onerror=function(c){return u(c)},s.onsuccess=function(c){l(c.target.result)}})}function a(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch{return n.openCursor()}}return new Promise(function(l,u){var c=a();c.onerror=function(f){return u(f)},c.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(i.push(p.value),p.continue()):(jf(r),l(i))}})}function tO(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(cr,"readwrite",Ka),n=r.objectStore(cr);return Promise.all(t.map(function(i){var o=n.delete(i);return new Promise(function(s){o.onsuccess=function(){return s()}})}))}function rO(e,t){var r=Date.now()-t,n=e.transaction(cr,"readonly",Ka),i=n.objectStore(cr),o=[];return new Promise(function(s){i.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var u=l.value;u.time<r?(o.push(u),l.continue()):(jf(n),s(o))}else s(o)}})}function nO(e){return rO(e.db,e.options.idb.ttl).then(function(t){return tO(e,t.map(function(r){return r.id}))})}function iO(e,t){return t=vi(t),XI(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:qo(),eMIs:new bi(t.idb.ttl*2),writeBlockPromise:zt,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},yb(n),n})}function yb(e){e.closed||xb(e).then(function(){return Xa(e.options.idb.fallbackInterval)}).then(function(){return yb(e)})}function oO(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function xb(e){return e.closed?zt:e.messagesCallback?eO(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return oO(n,e)}).sort(function(n,i){return n.time-i.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),zt}):zt}function sO(e){e.closed=!0,e.db.close()}function aO(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return KI(e.db,e.uuid,t)}).then(function(){hb(0,10)===0&&nO(e)}),e.writeBlockPromise}function lO(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,xb(e)}function uO(){return!!gb()}function cO(e){return e.idb.fallbackInterval*2}var bb={create:iO,close:sO,onMessage:lO,postMessage:aO,canBeUsed:uO,type:ZI,averageResponseTime:cO,microSeconds:JI};var fO=ur,pO="pubkey.broadcastChannel-",hO="localstorage";function vb(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function wb(e){return pO+e}function mO(e,t){return new Promise(function(r){Xa().then(function(){var n=wb(e.channelName),i={token:qo(),time:Date.now(),data:t,uuid:e.uuid},o=JSON.stringify(i);vb().setItem(n,o);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=o,window.dispatchEvent(s),r()})})}function dO(e,t){var r=wb(e),n=function(o){o.key===r&&t(JSON.parse(o.newValue))};return window.addEventListener("storage",n),n}function gO(e){window.removeEventListener("storage",e)}function yO(e,t){if(t=vi(t),!Sb())throw new Error("BroadcastChannel: localstorage cannot be used");var r=qo(),n=new bi(t.localstorage.removeTimeout),i={channelName:e,uuid:r,eMIs:n};return i.listener=dO(e,function(o){i.messagesCallback&&o.uuid!==r&&(!o.token||n.has(o.token)||o.data.time&&o.data.time<i.messagesCallbackTime||(n.add(o.token),i.messagesCallback(o.data)))}),i}function xO(e){gO(e.listener)}function bO(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function Sb(){var e=vb();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function vO(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var kb={create:yO,close:xO,onMessage:bO,postMessage:mO,canBeUsed:Sb,type:hO,averageResponseTime:vO,microSeconds:fO};var Ab=ur,wO="simulate",Uf=new Set;function SO(e){var t={time:Ab(),name:e,messagesCallback:null};return Uf.add(t),t}function kO(e){Uf.delete(e)}var Eb=5;function AO(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(Uf);n.forEach(function(i){i.name===e.name&&i!==e&&i.messagesCallback&&i.time<t.time&&i.messagesCallback(t)}),r()},Eb)})}function EO(e,t){e.messagesCallback=t}function TO(){return!0}function CO(){return Eb}var Tb={create:SO,close:kO,onMessage:EO,postMessage:AO,canBeUsed:TO,type:wO,averageResponseTime:CO,microSeconds:Ab};var Cb=[mb,bb,kb];function _b(e){var t=[].concat(e.methods,Cb).filter(Boolean);if(e.type){if(e.type==="simulate")return Tb;var r=t.find(function(i){return i.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(i){return i.type!=="idb"}));var n=t.find(function(i){return i.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(Cb.map(function(i){return i.type})))}var zf=new Set,_O=0,wi=function(t,r){this.id=_O++,zf.add(this),this.name=t,Ib&&(r=Ib),this.options=vi(r),this.method=_b(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,IO(this)};wi._pubkey=!0;var Ib;wi.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return Ob(this,"message",t)},postInternal:function(t){return Ob(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};Pb(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,Mb(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),i={time:n,fn:r};Mb(this,t,i)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(i){return i.fn===r});Pb(this,t,n)},close:function(){var t=this;if(!this.closed){zf.delete(this),this.closed=!0;var r=this._prepP?this._prepP:zt;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Ob(e,t,r){var n=e.method.microSeconds(),i={time:n,type:t,data:r},o=e._prepP?e._prepP:zt;return o.then(function(){var s=e.method.postMessage(e._state,i);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function IO(e){var t=e.method.create(e.name,e.options);pb(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function Db(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function Mb(e,t,r){e._addEL[t].push(r),OO(e)}function Pb(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),MO(e)}function OO(e){if(!e._iL&&Db(e)){var t=function(i){e._addEL[i.type].forEach(function(o){i.time>=o.time&&o.fn(i.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function MO(e){if(e._iL&&!Db(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var qf=globalThis.BroadcastChannel;qf||(qf=wi);var Hf=class{constructor(){this.broadcastChannel=new qf("dees-comms"),this.typedrouter=new At.TypedRouter,this.typedtarget=new At.TypedTarget({postMethodWithTypedRouter:async t=>{this.postMessage(t)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new At.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new At.TypedHandler(t,r))}};var ou={};oe(ou,{SmartMarkdown:()=>Gh});var zk=Ge(Tw(),1);function np(e){if(e)throw e}var hl=Ge(Nw(),1);function Qo(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ip(){let e=[],t={run:r,use:n};return t;function r(...i){let o=-1,s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){let c=e[++o],f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Rw(c,a)(...u):s(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Rw(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){let c=u;if(a&&r)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){r||(r=!0,t(s,...a))}function o(s){i(null,s)}}function Pr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Lw(e.position):"start"in e||"end"in e?Lw(e):"line"in e||"column"in e?op(e):""}function op(e){return Bw(e&&e.line)+":"+Bw(e&&e.column)}function Lw(e){return op(e&&e.start)+"-"+op(e&&e.end)}function Bw(e){return e&&typeof e=="number"?e:1}var Ye=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",o={},s=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?o.ruleId=n:(o.source=n.slice(0,l),o.ruleId=n.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Pr(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};Ye.prototype.file="";Ye.prototype.name="";Ye.prototype.reason="";Ye.prototype.message="";Ye.prototype.stack="";Ye.prototype.column=void 0;Ye.prototype.line=void 0;Ye.prototype.ancestors=void 0;Ye.prototype.cause=void 0;Ye.prototype.fatal=void 0;Ye.prototype.place=void 0;Ye.prototype.ruleId=void 0;Ye.prototype.source=void 0;var Ft={basename:gD,dirname:yD,extname:xD,join:bD,sep:"/"};function gD(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zo(e);let r=0,n=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(n=i):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function yD(e){if(Zo(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xD(e){Zo(e);let t=e.length,r=-1,n=0,i=-1,o=0,s;for(;t--;){let a=e.codePointAt(t);if(a===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||r<0||o===0||o===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function bD(...e){let t=-1,r;for(;++t<e.length;)Zo(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":vD(r)}function vD(e){Zo(e);let t=e.codePointAt(0)===47,r=wD(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function wD(e,t){let r="",n=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}}else if(r.length>0){r="",n=0,i=s,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return r}function Zo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var $w={cwd:SD};function SD(){return"/"}function Ii(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function jw(e){if(typeof e=="string")e=new URL(e);else if(!Ii(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return kD(e)}function kD(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var sp=["history","path","basename","stem","extname","dirname"],Xo=class{constructor(t){let r;t?Ii(t)?r={path:t}:typeof t=="string"||AD(t)?r={value:t}:r=t:r={},this.cwd=$w.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<sp.length;){let o=sp[n];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let i;for(i in r)sp.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Ft.basename(this.path):void 0}set basename(t){lp(t,"basename"),ap(t,"basename"),this.path=Ft.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ft.dirname(this.path):void 0}set dirname(t){Uw(this.basename,"dirname"),this.path=Ft.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ft.extname(this.path):void 0}set extname(t){if(ap(t,"extname"),Uw(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ft.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ii(t)&&(t=jw(t)),lp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ft.basename(this.path,this.extname):void 0}set stem(t){lp(t,"stem"),ap(t,"stem"),this.path=Ft.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){let i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){let i=new Ye(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function ap(e,t){if(e&&e.includes(Ft.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ft.sep+"`")}function lp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Uw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function AD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var zw=function(e){let n=this.constructor.prototype,i=n[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,n),o};var ED={}.hasOwnProperty,pp=class e extends zw{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ip()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,hl.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(fp("data",this.frozen),this.namespace[t]=r,this):ED.call(this.namespace,t)&&this.namespace[t]||void 0:t?(fp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=pl(t),n=this.parser||this.Parser;return up("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),up("process",this.parser||this.Parser),cp("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(o,s){let a=pl(t),l=n.parse(a);n.run(l,a,function(c,f,p){if(c||!f||!p)return u(c);let h=f,m=n.stringify(h,p);CD(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?s(c):o?o(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),up("processSync",this.parser||this.Parser),cp("processSync",this.compiler||this.Compiler),this.process(t,i),Hw("processSync","process",r),n;function i(o,s){r=!0,np(o),n=s}}run(t,r,n){qw(t),this.freeze();let i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?o(void 0,n):new Promise(o);function o(s,a){let l=pl(r);i.run(t,l,u);function u(c,f,p){let h=f||t;c?a(c):s?s(h):n(void 0,h,p)}}}runSync(t,r){let n=!1,i;return this.run(t,r,o),Hw("runSync","run",n),i;function o(s,a){np(s),i=a,n=!0}}stringify(t,r){this.freeze();let n=pl(r),i=this.compiler||this.Compiler;return cp("stringify",i),qw(t),i(t,n)}use(t,...r){let n=this.attachers,i=this.namespace;if(fp("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=(0,hl.default)(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<n.length;)if(n[f][0]===u){p=f;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[h,...m]=c,b=n[p][1];Qo(b)&&Qo(h)&&(h=(0,hl.default)(!0,b,h)),n[p]=[u,h,...m]}}}},ml=new pp().freeze();function up(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qw(e){if(!Qo(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Hw(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pl(e){return TD(e)?e:new Xo(e)}function TD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function CD(e){return typeof e=="string"||_D(e)}function _D(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Oi(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}var qe=Dr(/[A-Za-z]/),Te=Dr(/[\dA-Za-z]/),Ww=Dr(/[#-'*+\--9=?A-Z^-~]/);function An(e){return e!==null&&(e<32||e===127)}var Ko=Dr(/\d/),Vw=Dr(/[\dA-Fa-f]/),Yw=Dr(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function se(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}var En=Dr(/\p{P}|\p{S}/u),Wt=Dr(/\s/);function Dr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var Fr=function(e){if(e==null)return PD;if(typeof e=="function")return dl(e);if(typeof e=="object")return Array.isArray(e)?ID(e):OD(e);if(typeof e=="string")return MD(e);throw new Error("Expected function, string, or object as test")};function ID(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Fr(e[r]);return dl(n);function n(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function OD(e){let t=e;return dl(r);function r(n){let i=n,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function MD(e){return dl(t);function t(r){return r&&r.type===e}}function dl(e){return t;function t(r,n,i){return!!(DD(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function PD(){return!0}function DD(e){return e!==null&&typeof e=="object"&&"type"in e}var Gw=[],gl=!0,Tn=!1,yl="skip";function es(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;let o=Fr(i),s=n?-1:1;a(e,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Gw,m,b,x;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=FD(r(l,c)),h[0]===Tn))return h;if("children"in l&&l.children){let v=l;if(v.children&&h[0]!==yl)for(b=(n?v.children.length:-1)+s,x=c.concat(v);b>-1&&b<v.children.length;){let C=v.children[b];if(m=a(C,b,x)(),m[0]===Tn)return m;b=typeof m[1]=="number"?m[1]:b+s}}return h}}}function FD(e){return Array.isArray(e)?e:typeof e=="number"?[gl,e]:e==null?Gw:[e]}function hp(e,t,r){let i=Fr((r||{}).ignore||[]),o=ND(t),s=-1;for(;++s<o.length;)es(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){let h=c[f],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return l(u,c)}function l(u,c){let f=c[c.length-1],p=o[s][0],h=o[s][1],m=0,x=f.children.indexOf(u),v=!1,C=[];p.lastIndex=0;let w=p.exec(u.value);for(;w;){let F=w.index,H={index:w.index,input:w.input,stack:[...c,u]},E=h(...w,H);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?p.lastIndex=F+1:(m!==F&&C.push({type:"text",value:u.value.slice(m,F)}),Array.isArray(E)?C.push(...E):E&&C.push(E),m=F+w[0].length,v=!0),!p.global)break;w=p.exec(u.value)}return v?(m<u.value.length&&C.push({type:"text",value:u.value.slice(m)}),f.children.splice(x,1,...C)):C=[u],x+C.length}}function ND(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let i=r[n];t.push([RD(i[0]),LD(i[1])])}return t}function RD(e){return typeof e=="string"?new RegExp(rn(e),"g"):e}function LD(e){return typeof e=="function"?e:function(){return e}}var mp="phrasing",dp=["autolink","link","image","label"];function yp(){return{transforms:[qD],enter:{literalAutolink:BD,literalAutolinkEmail:gp,literalAutolinkHttp:gp,literalAutolinkWww:gp},exit:{literalAutolink:zD,literalAutolinkEmail:UD,literalAutolinkHttp:$D,literalAutolinkWww:jD}}}function xp(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:mp,notInConstruct:dp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:mp,notInConstruct:dp},{character:":",before:"[ps]",after:"\\/",inConstruct:mp,notInConstruct:dp}]}}function BD(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function gp(e){this.config.enter.autolinkProtocol.call(this,e)}function $D(e){this.config.exit.autolinkProtocol.call(this,e)}function jD(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function UD(e){this.config.exit.autolinkEmail.call(this,e)}function zD(e){this.exit(e)}function qD(e){hp(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,HD],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,WD]],{ignore:["link","linkReference"]})}function HD(e,t,r,n,i){let o="";if(!Jw(i)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!VD(r)))return!1;let s=YD(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function WD(e,t,r,n){return!Jw(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function VD(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function YD(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),i=Oi(e,"("),o=Oi(e,")");for(;n!==-1&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}function Jw(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||Wt(r)||En(r))&&(!t||r!==47)}function rt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Qw.peek=rF;function bp(){return{enter:{gfmFootnoteDefinition:GD,gfmFootnoteDefinitionLabelString:JD,gfmFootnoteCall:XD,gfmFootnoteCallString:KD},exit:{gfmFootnoteDefinition:ZD,gfmFootnoteDefinitionLabelString:QD,gfmFootnoteCall:tF,gfmFootnoteCallString:eF}}}function vp(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:nF,footnoteReference:Qw}}}function GD(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function JD(){this.buffer()}function QD(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=rt(this.sliceSerialize(e)).toLowerCase()}function ZD(e){this.exit(e)}function XD(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function KD(){this.buffer()}function eF(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=rt(this.sliceSerialize(e)).toLowerCase()}function tF(e){this.exit(e)}function Qw(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function rF(){return"["}function nF(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(r.indentLines(r.containerFlow(e,i.current()),iF)),s(),o}function iF(e,t,r){return t===0?e:(r?"":" ")+e}var oF=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zw.peek=lF;function wp(){return{canContainEols:["delete"],enter:{strikethrough:sF},exit:{strikethrough:aF}}}function Sp(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:oF}],handlers:{delete:Zw}}}function sF(e){this.enter({type:"delete",children:[]},e)}function aF(e){this.exit(e)}function Zw(e,t,r,n){let i=r.createTracker(n),o=r.enter("strikethrough"),s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function lF(){return"~"}function Kw(e,t={}){let r=(t.align||[]).concat(),n=t.stringLength||cF,i=[],o=[],s=[],a=[],l=0,u=-1;for(;++u<e.length;){let m=[],b=[],x=-1;for(e[u].length>l&&(l=e[u].length);++x<e[u].length;){let v=uF(e[u][x]);if(t.alignDelimiters!==!1){let C=n(v);b[x]=C,(a[x]===void 0||C>a[x])&&(a[x]=C)}m.push(v)}o[u]=m,s[u]=b}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<l;)i[c]=Xw(r[c]);else{let m=Xw(r);for(;++c<l;)i[c]=m}c=-1;let f=[],p=[];for(;++c<l;){let m=i[c],b="",x="";m===99?(b=":",x=":"):m===108?b=":":m===114&&(x=":");let v=t.alignDelimiters===!1?1:Math.max(1,a[c]-b.length-x.length),C=b+"-".repeat(v)+x;t.alignDelimiters!==!1&&(v=b.length+v+x.length,v>a[c]&&(a[c]=v),p[c]=v),f[c]=C}o.splice(1,0,f),s.splice(1,0,p),u=-1;let h=[];for(;++u<o.length;){let m=o[u],b=s[u];c=-1;let x=[];for(;++c<l;){let v=m[c]||"",C="",w="";if(t.alignDelimiters!==!1){let F=a[c]-(b[c]||0),H=i[c];H===114?C=" ".repeat(F):H===99?F%2?(C=" ".repeat(F/2+.5),w=" ".repeat(F/2-.5)):(C=" ".repeat(F/2),w=C):w=" ".repeat(F)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&v==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(C),x.push(v),t.alignDelimiters!==!1&&x.push(w),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==l-1)&&x.push("|")}h.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return h.join(`
|
|
45
|
+
`)}function uF(e){return e==null?"":String(e)}function cF(e){return e.length}function Xw(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var e0={}.hasOwnProperty;function xl(e,t){let r=t||{};function n(i,...o){let s=n.invalid,a=n.handlers;if(i&&e0.call(i,e)){let l=String(i[e]);s=e0.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var fF={}.hasOwnProperty;function kp(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)kp(e,t.extensions[r]);for(n in t)if(fF.call(t,n))switch(n){case"extensions":break;case"unsafe":{t0(e[n],t[n]);break}case"join":{t0(e[n],t[n]);break}case"handlers":{pF(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function t0(e,t){t&&e.push(...t)}function pF(e,t){t&&Object.assign(e,t)}function r0(e,t,r,n){let i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);let s=r.indentLines(r.containerFlow(e,o.current()),hF);return i(),s}function hF(e,t,r){return">"+(r?"":" ")+e}function bl(e,t){return n0(e,t.inConstruct,!0)&&!n0(e,t.notInConstruct,!1)}function n0(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function Ap(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
46
|
+
`&&bl(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
47
|
+
`}function i0(e,t){let r=String(e),n=r.indexOf(t),i=n,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++o>s&&(s=o):o=1,i=n+t.length,n=r.indexOf(t,i);return s}function ts(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function o0(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function s0(e,t,r,n){let i=o0(r),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(ts(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(o,mF);return f(),p}let a=r.createTracker(n),l=i.repeat(Math.max(i0(o,i)+1,3)),u=r.enter("codeFenced"),c=a.move(l);if(e.lang){let f=r.enter(`codeFencedLang${s}`);c+=a.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){let f=r.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(r.safe(e.meta,{before:c,after:`
|
|
48
|
+
`,encode:["`"],...a.current()})),f()}return c+=a.move(`
|
|
49
|
+
`),o&&(c+=a.move(o+`
|
|
50
|
+
`)),c+=a.move(l),u(),c}function mF(e,t,r){return(r?"":" ")+e}function Mi(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function a0(e,t,r,n){let i=Mi(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("definition"),a=r.enter("label"),l=r.createTracker(n),u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
51
|
+
`,...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),s(),u}function l0(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Ep.peek=dF;function Ep(e,t,r,n){let i=l0(r),o=r.enter("emphasis"),s=r.createTracker(n),a=s.move(i);return a+=s.move(r.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i),o(),a}function dF(e,t,r){return r.options.emphasis||"*"}function rs(e,t,r,n){let i,o,s;typeof t=="function"&&typeof r!="function"?(o=void 0,s=t,i=r):(o=t,s=r,i=n),es(e,o,a,i);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}var gF={};function Cn(e,t){let r=t||gF,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return c0(e,n,i)}function c0(e,t,r){if(yF(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return u0(e.children,t,r)}return Array.isArray(e)?u0(e,t,r):""}function u0(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=c0(e[i],t,r);return n.join("")}function yF(e){return!!(e&&typeof e=="object")}function vl(e,t){let r=!1;return rs(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Tn}),!!((!e.depth||e.depth<3)&&Cn(e)&&(t.options.setext||r))}function f0(e,t,r,n){let i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(vl(e,r)){let c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...o.current(),before:`
|
|
52
|
+
`,after:`
|
|
53
|
+
`});return f(),c(),p+`
|
|
54
|
+
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
55
|
+
`))+1))}let s="#".repeat(i),a=r.enter("headingAtx"),l=r.enter("phrasing");o.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
56
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),a(),u}Tp.peek=xF;function Tp(e){return e.value||""}function xF(){return"<"}Cp.peek=bF;function Cp(e,t,r,n){let i=Mi(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("image"),a=r.enter("label"),l=r.createTracker(n),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function bF(){return"!"}_p.peek=vF;function _p(e,t,r,n){let i=e.referenceType,o=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function vF(){return"!"}Ip.peek=wF;function Ip(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){let s=r.unsafe[o],a=r.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return i+n+i}function wF(){return"`"}function Op(e,t){let r=Cn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Mp.peek=SF;function Mp(e,t,r,n){let i=Mi(r),o=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n),a,l;if(Op(e,r)){let c=r.stack;r.stack=[],a=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),r.stack=c,f}a=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(r.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function SF(e,t,r){return Op(e,r)?"<":"["}Pp.peek=kF;function Pp(e,t,r,n){let i=e.referenceType,o=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function kF(){return"["}function Pi(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function p0(e){let t=Pi(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function h0(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function wl(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function m0(e,t,r,n){let i=r.enter("list"),o=r.bulletCurrent,s=e.ordered?h0(r):Pi(r),a=e.ordered?s==="."?")":".":p0(r),l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),wl(r)===s&&c){let f=-1;for(;++f<e.children.length;){let p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;let u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=o,i(),u}function d0(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function g0(e,t,r,n){let i=d0(r),o=r.bulletCurrent||Pi(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=r.createTracker(n);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,a.current()),c);return l(),u;function c(f,p,h){return p?(h?"":" ".repeat(s))+f:(h?o:o+" ".repeat(s-o.length))+f}}function y0(e,t,r,n){let i=r.enter("paragraph"),o=r.enter("phrasing"),s=r.containerPhrasing(e,n);return o(),i(),s}var Dp=Fr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function x0(e,t,r,n){return(e.children.some(function(s){return Dp(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function b0(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Fp.peek=AF;function Fp(e,t,r,n){let i=b0(r),o=r.enter("strong"),s=r.createTracker(n),a=s.move(i+i);return a+=s.move(r.containerPhrasing(e,{before:a,after:i,...s.current()})),a+=s.move(i+i),o(),a}function AF(e,t,r){return r.options.strong||"*"}function v0(e,t,r,n){return r.safe(e.value,n)}function w0(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function S0(e,t,r){let n=(wl(r)+(r.options.ruleSpaces?" ":"")).repeat(w0(r));return r.options.ruleSpaces?n.slice(0,-1):n}var _n={blockquote:r0,break:Ap,code:s0,definition:a0,emphasis:Ep,hardBreak:Ap,heading:f0,html:Tp,image:Cp,imageReference:_p,inlineCode:Ip,link:Mp,linkReference:Pp,list:m0,listItem:g0,paragraph:y0,root:x0,strong:Fp,text:v0,thematicBreak:S0};var k0=[EF];function EF(e,t,r,n){if(t.type==="code"&&ts(t,n)&&(e.type==="list"||e.type===t.type&&ts(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&vl(t,n))?void 0:r.spread?1:0}var In=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],A0=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
57
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:In},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
58
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:In},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
59
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:In},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
60
|
+
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
61
|
+
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
62
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:In},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:In},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:In},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:In},{atBreak:!0,character:"~"}];var E0=document.createElement("i");function Di(e){let t="&"+e+";";E0.innerHTML=t;let r=E0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Sl(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}var TF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kl(e){return e.replace(TF,CF)}function CF(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),o=i===120||i===88;return Sl(r.slice(o?2:1),o?16:10)}return Di(r)||e}function T0(e){return e.label||!e.identifier?e.label||"":kl(e.identifier)}function C0(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function _0(e,t,r){let n=t.indexStack,i=e.children||[],o=[],s=-1,a=r.before;n.push(-1);let l=t.createTracker(r);for(;++s<i.length;){let u=i[s],c;if(n[n.length-1]=s,s+1<i.length){let f=t.handle.handlers[i[s+1].type];f&&f.peek&&(f=f.peek),c=f?f(i[s+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else c=r.after;o.length>0&&(a==="\r"||a===`
|
|
63
|
+
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",l=t.createTracker(r),l.move(o.join(""))),o.push(l.move(t.handle(u,e,t,{...l.current(),before:a,after:c}))),a=o[o.length-1].slice(-1)}return n.pop(),o.join("")}function I0(e,t,r){let n=t.indexStack,i=e.children||[],o=t.createTracker(r),s=[],a=-1;for(n.push(-1);++a<i.length;){let l=i[a];n[n.length-1]=a,s.push(o.move(t.handle(l,e,t,{before:`
|
|
64
|
+
`,after:`
|
|
65
|
+
`,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(_F(l,i[a+1],e,t)))}return n.pop(),s.join("")}function _F(e,t,r,n){let i=n.join.length;for(;i--;){let o=n.join[i](e,t,r,n);if(o===!0||o===1)break;if(typeof o=="number")return`
|
|
66
|
+
`.repeat(1+o);if(o===!1)return`
|
|
67
|
+
|
|
68
|
+
<!---->
|
|
69
|
+
|
|
70
|
+
`}return`
|
|
71
|
+
|
|
72
|
+
`}var IF=/\r?\n|\r/g;function O0(e,t){let r=[],n=0,i=0,o;for(;o=IF.exec(e);)s(e.slice(n,o.index)),r.push(o[0]),n=o.index+o[0].length,i++;return s(e.slice(n)),r.join("");function s(a){r.push(t(a,i,!a))}}function P0(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],s={},a=-1;for(;++a<e.unsafe.length;){let c=e.unsafe[a];if(!bl(e.stack,c))continue;let f=e.compilePattern(c),p;for(;p=f.exec(n);){let h="before"in c||!!c.atBreak,m="after"in c,b=p.index+(h?p[1].length:0);i.includes(b)?(s[b].before&&!h&&(s[b].before=!1),s[b].after&&!m&&(s[b].after=!1)):(i.push(b),s[b]={before:h,after:m})}}i.sort(OF);let l=r.before?r.before.length:0,u=n.length-(r.after?r.after.length:0);for(a=-1;++a<i.length;){let c=i[a];c<l||c>=u||c+1<u&&i[a+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||i[a-1]===c-1&&s[c].before&&!s[c-1].before&&!s[c-1].after||(l!==c&&o.push(M0(n.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||!r.encode.includes(n.charAt(c)))?o.push("\\"):(o.push("&#x"+n.charCodeAt(c).toString(16).toUpperCase()+";"),l++))}return o.push(M0(n.slice(l,u),r.after)),o.join("")}function OF(e,t){return e-t}function M0(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t,s=-1,a=0,l;for(;l=r.exec(o);)n.push(l.index);for(;++s<n.length;)a!==n[s]&&i.push(e.slice(a,n[s])),i.push("\\"),a=n[s];return i.push(e.slice(a)),i.join("")}function D0(e){let t=e||{},r=t.now||{},n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:l,current:s,shift:a};function s(){return{now:{line:i,column:o},lineShift:n}}function a(u){n+=u}function l(u){let c=u||"",f=c.split(/\r?\n|\r/g),p=f[f.length-1];return i+=f.length-1,o=f.length===1?o+p.length:1+p.length+n,c}}function Np(e,t={}){let r={enter:i,indentLines:O0,associationId:T0,containerPhrasing:FF,containerFlow:NF,createTracker:D0,compilePattern:C0,safe:RF,stack:[],unsafe:[...A0],join:[...k0],handlers:{..._n},options:{},indexStack:[],handle:void 0};kp(r,t),r.options.tightDefinitions&&r.join.push(DF),r.handle=xl("type",{invalid:MF,unknown:PF,handlers:r.handlers});let n=r.handle(e,void 0,r,{before:`
|
|
73
|
+
`,after:`
|
|
74
|
+
`,now:{line:1,column:1},lineShift:0});return n&&n.charCodeAt(n.length-1)!==10&&n.charCodeAt(n.length-1)!==13&&(n+=`
|
|
75
|
+
`),n;function i(o){return r.stack.push(o),s;function s(){r.stack.pop()}}}function MF(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function PF(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function DF(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function FF(e,t){return _0(e,this,t)}function NF(e,t){return I0(e,this,t)}function RF(e,t){return P0(this,e,t)}function Lp(){return{enter:{table:LF,tableData:F0,tableHeader:F0,tableRow:$F},exit:{codeText:jF,table:BF,tableData:Rp,tableHeader:Rp,tableRow:Rp}}}function LF(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function BF(e){this.exit(e),this.data.inTable=void 0}function $F(e){this.enter({type:"tableRow",children:[]},e)}function Rp(e){this.exit(e)}function F0(e){this.enter({type:"tableCell",children:[]},e)}function jF(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,UF));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function UF(e,t){return t==="|"?t:e}function Bp(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
76
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:a}};function s(h,m,b,x){return u(c(h,b,x),h.align)}function a(h,m,b,x){let v=f(h,b,x),C=u([v]);return C.slice(0,C.indexOf(`
|
|
77
|
+
`))}function l(h,m,b,x){let v=b.enter("tableCell"),C=b.enter("phrasing"),w=b.containerPhrasing(h,{...x,before:o,after:o});return C(),v(),w}function u(h,m){return Kw(h,{align:m,alignDelimiters:n,padding:r,stringLength:i})}function c(h,m,b){let x=h.children,v=-1,C=[],w=m.enter("table");for(;++v<x.length;)C[v]=f(x[v],m,b);return w(),C}function f(h,m,b){let x=h.children,v=-1,C=[],w=m.enter("tableRow");for(;++v<x.length;)C[v]=l(x[v],h,m,b);return w(),C}function p(h,m,b){let x=_n.inlineCode(h,m,b);return b.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function $p(){return{exit:{taskListCheckValueChecked:N0,taskListCheckValueUnchecked:N0,paragraph:zF}}}function jp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qF}}}function N0(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function zF(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let i=t.children,o=-1,s;for(;++o<i.length;){let a=i[o];if(a.type==="paragraph"){s=a;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function qF(e,t,r,n){let i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);o&&a.move(s);let l=_n.listItem(e,t,r,{...n,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function Up(){return[yp(),bp(),wp(),Lp(),$p()]}function zp(e){return{extensions:[xp(),vp(),Sp(),Bp(e),jp()]}}function Re(e,t,r,n){let i=e.length,o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);o<n.length;)s=n.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function st(e,t){return e.length>0?(Re(e,e.length,0,t),e):t}var R0={}.hasOwnProperty;function Al(e){let t={},r=-1;for(;++r<e.length;)HF(t,e[r]);return t}function HF(e,t){let r;for(r in t){let i=(R0.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){R0.call(i,s)||(i[s]=[]);let a=o[s];WF(i[s],Array.isArray(a)?a:a?[a]:[])}}}function WF(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Re(e,0,0,n)}var VF={tokenize:ZF,partial:!0},L0={tokenize:XF,partial:!0},B0={tokenize:KF,partial:!0},$0={tokenize:eN,partial:!0},YF={tokenize:tN,partial:!0},j0={tokenize:JF,previous:z0},U0={tokenize:QF,previous:q0},pr={tokenize:GF,previous:H0},Vt={};function Hp(){return{text:Vt}}var On=48;for(;On<123;)Vt[On]=pr,On++,On===58?On=65:On===91&&(On=97);Vt[43]=pr;Vt[45]=pr;Vt[46]=pr;Vt[95]=pr;Vt[72]=[pr,U0];Vt[104]=[pr,U0];Vt[87]=[pr,j0];Vt[119]=[pr,j0];function GF(e,t,r){let n=this,i,o;return s;function s(f){return!qp(f)||!H0.call(n,n.previous)||Wp(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return qp(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(YF,c,u)(f):f===45||f===95||Te(f)?(o=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return o&&i&&qe(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function JF(e,t,r){let n=this;return i;function i(s){return s!==87&&s!==119||!z0.call(n,n.previous)||Wp(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(VF,e.attempt(L0,e.attempt(B0,o),r),r)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function QF(e,t,r){let n=this,i="",o=!1;return s;function s(f){return(f===72||f===104)&&q0.call(n,n.previous)&&!Wp(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(qe(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),o?u:(o=!0,l)):r(f)}function u(f){return f===null||An(f)||se(f)||Wt(f)||En(f)?r(f):e.attempt(L0,e.attempt(B0,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function ZF(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),o):r(s)}function o(s){return s===null?r(s):t(s)}}function XF(e,t,r){let n,i,o;return s;function s(u){return u===46||u===95?e.check($0,l,a)(u):u===null||se(u)||Wt(u)||u!==45&&En(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?n=!0:(i=n,n=void 0),e.consume(u),s}function l(u){return i||n||!o?r(u):t(u)}}function KF(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check($0,t,o)(s):s===null||se(s)||Wt(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&n++,e.consume(s),i}}function eN(e,t,r){return n;function n(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),n):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||se(a)||Wt(a)?t(a):r(a)}function i(a){return a===null||a===40||a===91||se(a)||Wt(a)?t(a):n(a)}function o(a){return qe(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):qe(a)?(e.consume(a),s):r(a)}}function tN(e,t,r){return n;function n(o){return e.consume(o),i}function i(o){return Te(o)?r(o):t(o)}}function z0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||se(e)}function q0(e){return!qe(e)}function H0(e){return!(e===47||qp(e))}function qp(e){return e===43||e===45||e===46||e===95||Te(e)}function Wp(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function Tt(e){let t=[],r=-1,n=0,i=0;for(;++r<e.length;){let o=e.charCodeAt(r),s="";if(o===37&&Te(e.charCodeAt(r+1))&&Te(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let a=e.charCodeAt(r+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Fi(e){if(e===null||se(e)||Wt(e))return 1;if(En(e))return 2}function Nr(e,t,r){let n=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}var ns={name:"attention",tokenize:nN,resolveAll:rN};function rN(e,t){let r=-1,n,i,o,s,a,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let f=Object.assign({},e[n][1].end),p=Object.assign({},e[r][1].start);W0(f,-l),W0(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},s.start),e[r][1].start=Object.assign({},a.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=st(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=st(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=st(u,Nr(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=st(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=st(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Re(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function nN(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Fi(n),o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;let u=e.exit("attentionSequence"),c=Fi(l),f=!c||c===2&&i||r.includes(l),p=!i||i===2&&c||r.includes(n);return u._open=!!(o===42?f:f&&(i||!p)),u._close=!!(o===42?p:p&&(c||!f)),t(l)}}function W0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Vp={name:"autolink",tokenize:iN};function iN(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return qe(h)?(e.consume(h),s):h===64?r(h):u(h)}function s(h){return h===43||h===45||h===46||Te(h)?(n=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Te(h))&&n++<32?(e.consume(h),a):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||An(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):Ww(h)?(e.consume(h),u):r(h)}function c(h){return Te(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Te(h))&&n++<63){let m=h===45?p:f;return e.consume(h),m}return r(h)}}function Q(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return J(l)?(e.enter(r),a(l)):t(l)}function a(l){return J(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var Yt={tokenize:oN,partial:!0};function oN(e,t,r){return n;function n(o){return J(o)?Q(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||q(o)?t(o):r(o)}}var El={name:"blockQuote",tokenize:sN,continuation:{tokenize:aN},exit:lN};function sN(e,t,r){let n=this;return i;function i(s){if(s===62){let a=n.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return r(s)}function o(s){return J(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function aN(e,t,r){let n=this;return i;function i(s){return J(s)?Q(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(El,t,r)(s)}}function lN(e){e.exit("blockQuote")}var Tl={name:"characterEscape",tokenize:uN};function uN(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Yw(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var Cl={name:"characterReference",tokenize:cN};function cN(e,t,r){let n=this,i=0,o,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Te,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=Vw,c):(e.enter("characterReferenceValue"),o=7,s=Ko,c(f))}function c(f){if(f===59&&i){let p=e.exit("characterReferenceValue");return s===Te&&!Di(n.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):r(f)}}var V0={tokenize:pN,partial:!0},_l={name:"codeFenced",tokenize:fN,concrete:!0};function fN(e,t,r){let n=this,i={tokenize:H,partial:!0},o=0,s=0,a;return l;function l(E){return u(E)}function u(E){let R=n.events[n.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(E)}function c(E){return E===a?(s++,e.consume(E),c):s<3?r(E):(e.exit("codeFencedFenceSequence"),J(E)?Q(e,f,"whitespace")(E):f(E))}function f(E){return E===null||q(E)?(e.exit("codeFencedFence"),n.interrupt?t(E):e.check(V0,b,F)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===null||q(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(E)):J(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Q(e,h,"whitespace")(E)):E===96&&E===a?r(E):(e.consume(E),p)}function h(E){return E===null||q(E)?f(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===null||q(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(E)):E===96&&E===a?r(E):(e.consume(E),m)}function b(E){return e.attempt(i,F,x)(E)}function x(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v}function v(E){return o>0&&J(E)?Q(e,C,"linePrefix",o+1)(E):C(E)}function C(E){return E===null||q(E)?e.check(V0,b,F)(E):(e.enter("codeFlowValue"),w(E))}function w(E){return E===null||q(E)?(e.exit("codeFlowValue"),C(E)):(e.consume(E),w)}function F(E){return e.exit("codeFenced"),t(E)}function H(E,R,W){let $=0;return A;function A(D){return E.enter("lineEnding"),E.consume(D),E.exit("lineEnding"),ae}function ae(D){return E.enter("codeFencedFence"),J(D)?Q(E,B,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):B(D)}function B(D){return D===a?(E.enter("codeFencedFenceSequence"),_(D)):W(D)}function _(D){return D===a?($++,E.consume(D),_):$>=s?(E.exit("codeFencedFenceSequence"),J(D)?Q(E,I,"whitespace")(D):I(D)):W(D)}function I(D){return D===null||q(D)?(E.exit("codeFencedFence"),R(D)):W(D)}}}function pN(e,t,r){let n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var is={name:"codeIndented",tokenize:mN},hN={tokenize:dN,partial:!0};function mN(e,t,r){let n=this;return i;function i(u){return e.enter("codeIndented"),Q(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):q(u)?e.attempt(hN,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||q(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function dN(e,t,r){let n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):q(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Q(e,o,"linePrefix",5)(s)}function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):q(s)?i(s):r(s)}}var Yp={name:"codeText",tokenize:xN,resolve:gN,previous:yN};function gN(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function yN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xN(e,t,r){let n=this,i=0,o,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),i++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(s=e.enter("codeTextSequence"),o=0,f(p)):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||q(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),o++,f):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}var Il=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let i=r||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&os(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),os(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),os(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);os(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);os(this.left,r.reverse())}}};function os(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Ol(e){let t={},r=-1,n,i,o,s,a,l,u,c=new Il(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,bN(c,r)),r=t[r],u=!0);else if(n[1]._container){for(o=r,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(n[1].end=Object.assign({},c.get(i)[1].start),a=c.slice(i,r),a.unshift(n),c.splice(i,r-i+1,a))}}return Re(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function bN(e,t){let r=e.get(t)[1],n=e.get(t)[2],i=t-1,o=[],s=r._tokenizer||n.parser[r.contentType](r.start),a=s.events,l=[],u={},c,f,p=-1,h=r,m=0,b=0,x=[b];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(b=p+1,x.push(b),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):x.pop(),p=x.length;p--;){let v=a.slice(x[p],x[p+1]),C=o.pop();l.push([C,C+v.length-1]),e.splice(C,2,v)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}var Gp={tokenize:SN,resolve:wN},vN={tokenize:kN,partial:!0};function wN(e){return Ol(e),e}function SN(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):q(a)?e.check(vN,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function kN(e,t,r){let n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Q(e,o,"linePrefix")}function o(s){if(s===null||q(s))return r(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function Ml(e,t,r,n,i,o,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(v){return v===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(v),e.exit(o),p):v===null||v===32||v===41||An(v)?r(v):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(v))}function p(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(a),p(v)):v===null||v===60||q(v)?r(v):(e.consume(v),v===92?m:h)}function m(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function b(v){return!c&&(v===null||v===41||se(v))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(v)):c<u&&v===40?(e.consume(v),c++,b):v===41?(e.consume(v),c--,b):v===null||v===32||v===40||An(v)?r(v):(e.consume(v),v===92?x:b)}function x(v){return v===40||v===41||v===92?(e.consume(v),b):b(v)}}function Pl(e,t,r,n,i,o){let s=this,a=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):q(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||q(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!J(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function Dl(e,t,r,n,i,o){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):(e.enter(o),u(p))}function u(p){return p===s?(e.exit(o),l(s)):p===null?r(p):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Q(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||q(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function Mn(e,t){let r;return n;function n(i){return q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):J(i)?Q(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Jp={name:"definition",tokenize:EN},AN={tokenize:TN,partial:!0};function EN(e,t,r){let n=this,i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return Pl.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=rt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return se(h)?Mn(e,u)(h):u(h)}function u(h){return Ml(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(AN,f,f)(h)}function f(h){return J(h)?Q(e,p,"whitespace")(h):p(h)}function p(h){return h===null||q(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function TN(e,t,r){return n;function n(a){return se(a)?Mn(e,i)(a):r(a)}function i(a){return Dl(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return J(a)?Q(e,s,"whitespace")(a):s(a)}function s(a){return a===null||q(a)?t(a):r(a)}}var Qp={name:"hardBreakEscape",tokenize:CN};function CN(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return q(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}var Zp={name:"headingAtx",tokenize:IN,resolve:_N};function _N(e,t){let r=e.length-2,n=3,i,o;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Re(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function IN(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||se(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||q(c)?(e.exit("atxHeading"),t(c)):J(c)?Q(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||se(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var Y0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xp=["pre","script","style","textarea"];var Kp={name:"htmlFlow",tokenize:DN,resolveTo:PN,concrete:!0},ON={tokenize:NN,partial:!0},MN={tokenize:FN,partial:!0};function PN(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DN(e,t,r){let n=this,i,o,s,a,l;return u;function u(y){return c(y)}function c(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),f}function f(y){return y===33?(e.consume(y),p):y===47?(e.consume(y),o=!0,b):y===63?(e.consume(y),i=3,n.interrupt?t:d):qe(y)?(e.consume(y),s=String.fromCharCode(y),x):r(y)}function p(y){return y===45?(e.consume(y),i=2,h):y===91?(e.consume(y),i=5,a=0,m):qe(y)?(e.consume(y),i=4,n.interrupt?t:d):r(y)}function h(y){return y===45?(e.consume(y),n.interrupt?t:d):r(y)}function m(y){let re="CDATA[";return y===re.charCodeAt(a++)?(e.consume(y),a===re.length?n.interrupt?t:B:m):r(y)}function b(y){return qe(y)?(e.consume(y),s=String.fromCharCode(y),x):r(y)}function x(y){if(y===null||y===47||y===62||se(y)){let re=y===47,ce=s.toLowerCase();return!re&&!o&&Xp.includes(ce)?(i=1,n.interrupt?t(y):B(y)):Y0.includes(s.toLowerCase())?(i=6,re?(e.consume(y),v):n.interrupt?t(y):B(y)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(y):o?C(y):w(y))}return y===45||Te(y)?(e.consume(y),s+=String.fromCharCode(y),x):r(y)}function v(y){return y===62?(e.consume(y),n.interrupt?t:B):r(y)}function C(y){return J(y)?(e.consume(y),C):A(y)}function w(y){return y===47?(e.consume(y),A):y===58||y===95||qe(y)?(e.consume(y),F):J(y)?(e.consume(y),w):A(y)}function F(y){return y===45||y===46||y===58||y===95||Te(y)?(e.consume(y),F):H(y)}function H(y){return y===61?(e.consume(y),E):J(y)?(e.consume(y),H):w(y)}function E(y){return y===null||y===60||y===61||y===62||y===96?r(y):y===34||y===39?(e.consume(y),l=y,R):J(y)?(e.consume(y),E):W(y)}function R(y){return y===l?(e.consume(y),l=null,$):y===null||q(y)?r(y):(e.consume(y),R)}function W(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||se(y)?H(y):(e.consume(y),W)}function $(y){return y===47||y===62||J(y)?w(y):r(y)}function A(y){return y===62?(e.consume(y),ae):r(y)}function ae(y){return y===null||q(y)?B(y):J(y)?(e.consume(y),ae):r(y)}function B(y){return y===45&&i===2?(e.consume(y),N):y===60&&i===1?(e.consume(y),V):y===62&&i===4?(e.consume(y),G):y===63&&i===3?(e.consume(y),d):y===93&&i===5?(e.consume(y),j):q(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ON,Z,_)(y)):y===null||q(y)?(e.exit("htmlFlowData"),_(y)):(e.consume(y),B)}function _(y){return e.check(MN,I,Z)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),D}function D(y){return y===null||q(y)?_(y):(e.enter("htmlFlowData"),B(y))}function N(y){return y===45?(e.consume(y),d):B(y)}function V(y){return y===47?(e.consume(y),s="",P):B(y)}function P(y){if(y===62){let re=s.toLowerCase();return Xp.includes(re)?(e.consume(y),G):B(y)}return qe(y)&&s.length<8?(e.consume(y),s+=String.fromCharCode(y),P):B(y)}function j(y){return y===93?(e.consume(y),d):B(y)}function d(y){return y===62?(e.consume(y),G):y===45&&i===2?(e.consume(y),d):B(y)}function G(y){return y===null||q(y)?(e.exit("htmlFlowData"),Z(y)):(e.consume(y),G)}function Z(y){return e.exit("htmlFlow"),t(y)}}function FN(e,t,r){let n=this;return i;function i(s){return q(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function NN(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Yt,t,r)}}var eh={name:"htmlText",tokenize:RN};function RN(e,t,r){let n=this,i,o,s;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),l}function l(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),H):d===63?(e.consume(d),w):qe(d)?(e.consume(d),W):r(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),o=0,m):qe(d)?(e.consume(d),C):r(d)}function c(d){return d===45?(e.consume(d),h):r(d)}function f(d){return d===null?r(d):d===45?(e.consume(d),p):q(d)?(s=f,V(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?N(d):d===45?p(d):f(d)}function m(d){let G="CDATA[";return d===G.charCodeAt(o++)?(e.consume(d),o===G.length?b:m):r(d)}function b(d){return d===null?r(d):d===93?(e.consume(d),x):q(d)?(s=b,V(d)):(e.consume(d),b)}function x(d){return d===93?(e.consume(d),v):b(d)}function v(d){return d===62?N(d):d===93?(e.consume(d),v):b(d)}function C(d){return d===null||d===62?N(d):q(d)?(s=C,V(d)):(e.consume(d),C)}function w(d){return d===null?r(d):d===63?(e.consume(d),F):q(d)?(s=w,V(d)):(e.consume(d),w)}function F(d){return d===62?N(d):w(d)}function H(d){return qe(d)?(e.consume(d),E):r(d)}function E(d){return d===45||Te(d)?(e.consume(d),E):R(d)}function R(d){return q(d)?(s=R,V(d)):J(d)?(e.consume(d),R):N(d)}function W(d){return d===45||Te(d)?(e.consume(d),W):d===47||d===62||se(d)?$(d):r(d)}function $(d){return d===47?(e.consume(d),N):d===58||d===95||qe(d)?(e.consume(d),A):q(d)?(s=$,V(d)):J(d)?(e.consume(d),$):N(d)}function A(d){return d===45||d===46||d===58||d===95||Te(d)?(e.consume(d),A):ae(d)}function ae(d){return d===61?(e.consume(d),B):q(d)?(s=ae,V(d)):J(d)?(e.consume(d),ae):$(d)}function B(d){return d===null||d===60||d===61||d===62||d===96?r(d):d===34||d===39?(e.consume(d),i=d,_):q(d)?(s=B,V(d)):J(d)?(e.consume(d),B):(e.consume(d),I)}function _(d){return d===i?(e.consume(d),i=void 0,D):d===null?r(d):q(d)?(s=_,V(d)):(e.consume(d),_)}function I(d){return d===null||d===34||d===39||d===60||d===61||d===96?r(d):d===47||d===62||se(d)?$(d):(e.consume(d),I)}function D(d){return d===47||d===62||se(d)?$(d):r(d)}function N(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):r(d)}function V(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),P}function P(d){return J(d)?Q(e,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):j(d)}function j(d){return e.enter("htmlTextData"),s(d)}}var Pn={name:"labelEnd",tokenize:zN,resolveTo:UN,resolveAll:jN},LN={tokenize:qN},BN={tokenize:HN},$N={tokenize:WN};function jN(e){let t=-1;for(;++t<e.length;){let r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function UN(e,t){let r=e.length,n=0,i,o,s,a;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);let l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[s][1].end)},c={type:"labelText",start:Object.assign({},e[o+n+2][1].end),end:Object.assign({},e[s-2][1].start)};return a=[["enter",l,t],["enter",u,t]],a=st(a,e.slice(o+1,o+n+3)),a=st(a,[["enter",c,t]]),a=st(a,Nr(t.parser.constructs.insideSpan.null,e.slice(o+n+4,s-3),t)),a=st(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=st(a,e.slice(s+1)),a=st(a,[["exit",l,t]]),Re(e,o,e.length,a),e}function zN(e,t,r){let n=this,i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return a;function a(p){return o?o._inactive?f(p):(s=n.parser.defined.includes(rt(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(LN,c,s?c:f)(p):p===91?e.attempt(BN,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt($N,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,r(p)}}function qN(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return se(f)?Mn(e,o)(f):o(f)}function o(f){return f===41?c(f):Ml(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return se(f)?Mn(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?Dl(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return se(f)?Mn(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function HN(e,t,r){let n=this;return i;function i(a){return Pl.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(rt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function WN(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}var th={name:"labelStartImage",tokenize:VN,resolveAll:Pn.resolveAll};function VN(e,t,r){let n=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):r(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var rh={name:"labelStartLink",tokenize:YN,resolveAll:Pn.resolveAll};function YN(e,t,r){let n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var ss={name:"lineEnding",tokenize:GN};function GN(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Q(e,t,"linePrefix")}}var Dn={name:"thematicBreak",tokenize:JN};function JN(e,t,r){let n=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||q(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),J(u)?Q(e,a,"whitespace")(u):a(u))}}var nt={name:"list",tokenize:XN,continuation:{tokenize:KN},exit:tR},QN={tokenize:rR,partial:!0},ZN={tokenize:eR,partial:!0};function XN(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(h){let m=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:Ko(h)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Dn,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return Ko(h)&&++s<10?(e.consume(h),l):(!n.interrupt||s<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(Yt,n.interrupt?r:c,e.attempt(QN,p,f))}function c(h){return n.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return J(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):r(h)}function p(h){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function KN(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(Yt,i,o);function i(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Q(e,t,"listItemIndent",n.containerState.size+1)(a)}function o(a){return n.containerState.furtherBlankLines||!J(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(ZN,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,Q(e,e.attempt(nt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function eR(e,t,r){let n=this;return Q(e,i,"listItemIndent",n.containerState.size+1);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(o):r(o)}}function tR(e){e.exit(this.containerState.type)}function rR(e,t,r){let n=this;return Q(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=n.events[n.events.length-1];return!J(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var Fl={name:"setextUnderline",tokenize:iR,resolveTo:nR};function nR(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);let s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=s,e.push(["exit",s,t]),e}function iR(e,t,r){let n=this,i;return o;function o(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?Q(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||q(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var oR={tokenize:pR,partial:!0};function nh(){return{document:{91:{tokenize:uR,continuation:{tokenize:cR},exit:fR}},text:{91:{tokenize:lR},93:{add:"after",tokenize:sR,resolveTo:aR}}}}function sR(e,t,r){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;i--;){let l=n.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return r(l);let u=rt(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function aR(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function lR(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(o>999||f===93&&!s||f===null||f===91||se(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(rt(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return se(f)||(s=!0),o++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,u):u(f)}}function uR(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,s=0,a;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(s>999||m===93&&!a||m===null||m===91||se(m))return r(m);if(m===93){e.exit("chunkString");let b=e.exit("gfmFootnoteDefinitionLabelString");return o=rt(n.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return se(m)||(a=!0),s++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Q(e,h,"gfmFootnoteDefinitionWhitespace")):r(m)}function h(m){return t(m)}}function cR(e,t,r){return e.check(Yt,t,e.attempt(oR,t,r))}function fR(e){e.exit("gfmFootnoteDefinition")}function pR(e,t,r){let n=this;return Q(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):r(o)}}function ih(e){let r=(e||{}).singleTilde,n={tokenize:o,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&Re(p,p.length,0,Nr(h,s.slice(u+1,l),a)),Re(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Re(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){let u=this.previous,c=this.events,f=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),h(m))}function h(m){let b=Fi(u);if(m===126)return f>1?l(m):(s.consume(m),f++,h);if(f<2&&!r)return l(m);let x=s.exit("strikethroughSequenceTemporary"),v=Fi(m);return x._open=!v||v===2&&!!b,x._close=!b||b===2&&!!v,a(m)}}}var Nl=class{constructor(){this.map=[]}add(t,r,n){hR(this,t,r,n)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push([...t]),t.length=0;let i=n.pop();for(;i;)t.push(...i),i=n.pop();this.map.length=0}};function hR(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function G0(e,t){let r=!1,n=[];for(;t<e.length;){let i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function oh(){return{flow:{null:{tokenize:mR,resolveAll:dR}}}}function mR(e,t,r){let n=this,i=0,o=0,s;return a;function a(A){let ae=n.events.length-1;for(;ae>-1;){let I=n.events[ae][1].type;if(I==="lineEnding"||I==="linePrefix")ae--;else break}let B=ae>-1?n.events[ae][1].type:null,_=B==="tableHead"||B==="tableRow"?E:l;return _===E&&n.parser.lazy[n.now().line]?r(A):_(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(s=!0,o+=1),c(A)}function c(A){return A===null?r(A):q(A)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),h):r(A):J(A)?Q(e,c,"whitespace")(A):(o+=1,s&&(s=!1,i+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(A)))}function f(A){return A===null||A===124||se(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?p:f)}function p(A){return A===92||A===124?(e.consume(A),f):f(A)}function h(A){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(A):(e.enter("tableDelimiterRow"),s=!1,J(A)?Q(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):m(A))}function m(A){return A===45||A===58?x(A):A===124?(s=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),b):H(A)}function b(A){return J(A)?Q(e,x,"whitespace")(A):x(A)}function x(A){return A===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),v):A===45?(o+=1,v(A)):A===null||q(A)?F(A):H(A)}function v(A){return A===45?(e.enter("tableDelimiterFiller"),C(A)):H(A)}function C(A){return A===45?(e.consume(A),C):A===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(A))}function w(A){return J(A)?Q(e,F,"whitespace")(A):F(A)}function F(A){return A===124?m(A):A===null||q(A)?!s||i!==o?H(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):H(A)}function H(A){return r(A)}function E(A){return e.enter("tableRow"),R(A)}function R(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),R):A===null||q(A)?(e.exit("tableRow"),t(A)):J(A)?Q(e,R,"whitespace")(A):(e.enter("data"),W(A))}function W(A){return A===null||A===124||se(A)?(e.exit("data"),R(A)):(e.consume(A),A===92?$:W)}function $(A){return A===92||A===124?(e.consume(A),W):W(A)}}function dR(e,t){let r=-1,n=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f,p=new Nl;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(J0(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,f=void 0,o=[0,0,0,0],s=[0,r+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],f=Rl(p,t,o,i,void 0,f),o=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(s[0]=s[1],f=Rl(p,t,o,i,void 0,f)),o=s,s=[o[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,o[1]!==0?(s[0]=s[1],f=Rl(p,t,o,i,r,f)):s[1]!==0&&(f=Rl(p,t,s,i,r,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&J0(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){let h=t.events[r];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=G0(t.events,r))}return e}function Rl(e,t,r,n,i,o){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(o.end=Object.assign({},Ni(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));let l=Ni(t.events,r[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){let u=Ni(t.events,r[2]),c=Ni(t.events,r[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),n!==2){let p=t.events[r[2]],h=t.events[r[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,b=r[3]-r[2]-1;e.add(m,b,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},Ni(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function J0(e,t,r,n,i){let o=[],s=Ni(t.events,r);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),n.end=Object.assign({},s),o.push(["exit",n,t]),e.add(r+1,0,o)}function Ni(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var gR={tokenize:yR};function sh(){return{text:{91:gR}}}function yR(e,t,r){let n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return se(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(l)}function a(l){return q(l)?t(l):J(l)?e.check({tokenize:xR},t,r)(l):r(l)}}function xR(e,t,r){return Q(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function Q0(e){return Al([Hp(),nh(),ih(e),oh(),sh()])}var bR={};function as(e){let t=this,r=e||bR,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(Q0(r)),o.push(Up()),s.push(zp(r))}var Z0={tokenize:vR};function vR(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Q(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return q(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}var K0={tokenize:wR},X0={tokenize:SR};function wR(e){let t=this,r=[],n=0,i,o,s;return a;function a(w){if(n<r.length){let F=r[n];return t.containerState=F[1],e.attempt(F[0].continuation,l,u)(w)}return u(w)}function l(w){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&C();let F=t.events.length,H=F,E;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){E=t.events[H][1].end;break}v(n);let R=F;for(;R<t.events.length;)t.events[R][1].end=Object.assign({},E),R++;return Re(t.events,H+1,0,t.events.slice(F)),t.events.length=R,u(w)}return a(w)}function u(w){if(n===r.length){if(!i)return p(w);if(i.currentConstruct&&i.currentConstruct.concrete)return m(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(X0,c,f)(w)}function c(w){return i&&C(),v(n),p(w)}function f(w){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(w)}function p(w){return t.containerState={},e.attempt(X0,h,m)(w)}function h(w){return n++,r.push([t.currentConstruct,t.containerState]),p(w)}function m(w){if(w===null){i&&C(),v(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),b(w)}function b(w){if(w===null){x(e.exit("chunkFlow"),!0),v(0),e.consume(w);return}return q(w)?(e.consume(w),x(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(w),b)}function x(w,F){let H=t.sliceStream(w);if(F&&H.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(H),t.parser.lazy[w.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<s&&(!i.events[E][1].end||i.events[E][1].end.offset>s))return;let R=t.events.length,W=R,$,A;for(;W--;)if(t.events[W][0]==="exit"&&t.events[W][1].type==="chunkFlow"){if($){A=t.events[W][1].end;break}$=!0}for(v(n),E=R;E<t.events.length;)t.events[E][1].end=Object.assign({},A),E++;Re(t.events,W+1,0,t.events.slice(R)),t.events.length=E}}function v(w){let F=r.length;for(;F-- >w;){let H=r[F];t.containerState=H[1],H[0].exit.call(t,e)}r.length=w}function C(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function SR(e,t,r){return Q(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var eS={tokenize:kR};function kR(e){let t=this,r=e.attempt(Yt,n,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Gp,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var tS={resolveAll:oS()},rS=iS("string"),nS=iS("text");function iS(e){return{tokenize:t,resolveAll:oS(e==="text"?AR:void 0)};function t(r){let n=this,i=this.parser.constructs[e],o=r.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),o(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let f=i[c],p=-1;if(f)for(;++p<f.length;){let h=f[p];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function oS(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function AR(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),o=i.length,s=-1,a=0,l;for(;o--;){let u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-a,offset:n.end.offset-a,_index:n.start._index+o,_bufferIndex:o?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},u.start),n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}function sS(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],s=[],a=[],l=!0,u={consume:F,enter:H,exit:E,attempt:$(R),check:$(W),interrupt:$(W,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:b,sliceSerialize:m,now:x,defineSkip:v,write:h},f=t.tokenize.call(c,u),p;return t.resolveAll&&o.push(t),c;function h(_){return s=st(s,_),C(),s[s.length-1]!==null?[]:(A(t,0),c.events=Nr(o,c.events,c),c.events)}function m(_,I){return TR(b(_),I)}function b(_){return ER(s,_)}function x(){let{line:_,column:I,offset:D,_index:N,_bufferIndex:V}=n;return{line:_,column:I,offset:D,_index:N,_bufferIndex:V}}function v(_){i[_.line]=_.column,B()}function C(){let _;for(;n._index<s.length;){let I=s[n._index];if(typeof I=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<I.length;)w(I.charCodeAt(n._bufferIndex));else w(I)}}function w(_){l=void 0,p=_,f=f(_)}function F(_){q(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,B()):_!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=_,l=!0}function H(_,I){let D=I||{};return D.type=_,D.start=x(),c.events.push(["enter",D,c]),a.push(D),D}function E(_){let I=a.pop();return I.end=x(),c.events.push(["exit",I,c]),I}function R(_,I){A(_,I.from)}function W(_,I){I.restore()}function $(_,I){return D;function D(N,V,P){let j,d,G,Z;return Array.isArray(N)?re(N):"tokenize"in N?re([N]):y(N);function y(g){return S;function S(T){let M=T!==null&&g[T],Y=T!==null&&g.null,pe=[...Array.isArray(M)?M:M?[M]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return re(pe)(T)}}function re(g){return j=g,d=0,g.length===0?P:ce(g[d])}function ce(g){return S;function S(T){return Z=ae(),G=g,g.partial||(c.currentConstruct=g),g.name&&c.parser.constructs.disable.null.includes(g.name)?k(T):g.tokenize.call(I?Object.assign(Object.create(c),I):c,u,ke,k)(T)}}function ke(g){return l=!0,_(G,Z),V}function k(g){return l=!0,Z.restore(),++d<j.length?ce(j[d]):P}}}function A(_,I){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Re(c.events,I,c.events.length-I,_.resolve(c.events.slice(I),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function ae(){let _=x(),I=c.previous,D=c.currentConstruct,N=c.events.length,V=Array.from(a);return{restore:P,from:N};function P(){n=_,c.previous=I,c.currentConstruct=D,c.events.length=N,a=V,B()}}function B(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function ER(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,s;if(r===i)s=[e[r].slice(n,o)];else{if(s=e.slice(r,i),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function TR(e,t){let r=-1,n=[],i;for(;++r<e.length;){let o=e[r],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
78
|
+
`;break}case-3:{s=`\r
|
|
79
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}var ah={};oe(ah,{attentionMarkers:()=>FR,contentInitial:()=>_R,disable:()=>NR,document:()=>CR,flow:()=>OR,flowInitial:()=>IR,insideSpan:()=>DR,string:()=>MR,text:()=>PR});var CR={42:nt,43:nt,45:nt,48:nt,49:nt,50:nt,51:nt,52:nt,53:nt,54:nt,55:nt,56:nt,57:nt,62:El},_R={91:Jp},IR={[-2]:is,[-1]:is,32:is},OR={35:Zp,42:Dn,45:[Fl,Dn],60:Kp,61:Fl,95:Dn,96:_l,126:_l},MR={38:Cl,92:Tl},PR={[-5]:ss,[-4]:ss,[-3]:ss,33:th,38:Cl,42:ns,60:[Vp,eh],91:rh,92:[Qp,Tl],93:Pn,95:ns,96:Yp},DR={null:[ns,tS]},FR={null:[42,95]},NR={null:[]};function lh(e){let r=Al([ah,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(Z0),document:i(K0),flow:i(eS),string:i(rS),text:i(nS)};return n;function i(o){return s;function s(a){return sS(n,o,a)}}}function uh(e){for(;!Ol(e););return e}var aS=/[\0\t\n\r]/g;function ch(){let e=1,t="",r=!0,n;return i;function i(o,s,a){let l=[],u,c,f,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",r&&(o.charCodeAt(0)===65279&&f++,r=void 0);f<o.length;){if(aS.lastIndex=f,u=aS.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.slice(f);break}if(h===10&&f===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<p&&(l.push(o.slice(f,p)),e+=p-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=p+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var uS={}.hasOwnProperty;function fh(e,t,r){return typeof t!="string"&&(r=t,t=void 0),RR(r)(uh(lh(r).document().write(ch()(e,t,!0))))}function RR(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Qt),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(me),blockQuote:o(T),characterEscape:$,characterReference:$,codeFenced:o(M),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(M,s),codeText:o(Y,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(pe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(he),hardBreakEscape:o(bt),hardBreakTrailing:o(bt),htmlFlow:o(Xe,s),htmlFlowData:$,htmlText:o(Xe,s),htmlTextData:$,image:o(mt),label:s,link:o(Qt),listItem:o(_t),listItemValue:p,listOrdered:o(yr,f),listUnordered:o(yr),paragraph:o(Rt),reference:y,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(me),strong:o(vt),thematicBreak:o(xr)},exit:{atxHeading:l(),atxHeadingSequence:H,autolink:l(),autolinkEmail:S,autolinkProtocol:g,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:ke,characterReference:k,codeFenced:l(x),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:A,codeIndented:l(v),codeText:l(D),codeTextData:A,data:A,definition:l(),definitionDestinationString:F,definitionLabelString:C,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(_),htmlFlowData:A,htmlText:l(I),htmlTextData:A,image:l(V),label:j,labelText:P,lineEnding:ae,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:re,resourceDestinationString:d,resourceTitleString:G,resource:Z,setextHeading:l(W),setextHeadingLineSequence:R,setextHeadingText:E,strong:l(),thematicBreak:l()}};cS(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(O){let U={type:"root",children:[]},K={stack:[U],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},ne=[],ye=-1;for(;++ye<O.length;)if(O[ye][1].type==="listOrdered"||O[ye][1].type==="listUnordered")if(O[ye][0]==="enter")ne.push(ye);else{let It=ne.pop();ye=i(O,It,ye)}for(ye=-1;++ye<O.length;){let It=t[O[ye][0]];uS.call(It,O[ye][1].type)&&It[O[ye][1].type].call(Object.assign({sliceSerialize:O[ye][2].sliceSerialize},K),O[ye][1])}if(K.tokenStack.length>0){let It=K.tokenStack[K.tokenStack.length-1];(It[1]||lS).call(K,void 0,It[0])}for(U.position={start:Rr(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:Rr(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)U=t.transforms[ye](U)||U;return U}function i(O,U,K){let ne=U-1,ye=-1,It=!1,zr,Zt,to,ro;for(;++ne<=K;){let dt=O[ne];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?ye++:ye--,ro=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&(zr&&!ro&&!ye&&!to&&(to=ne),ro=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ro=void 0}if(!ye&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||ye===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if(zr){let Un=ne;for(Zt=void 0;Un--;){let Xt=O[Un];if(Xt[1].type==="lineEnding"||Xt[1].type==="lineEndingBlank"){if(Xt[0]==="exit")continue;Zt&&(O[Zt][1].type="lineEndingBlank",It=!0),Xt[1].type="lineEnding",Zt=Un}else if(!(Xt[1].type==="linePrefix"||Xt[1].type==="blockQuotePrefix"||Xt[1].type==="blockQuotePrefixWhitespace"||Xt[1].type==="blockQuoteMarker"||Xt[1].type==="listItemIndent"))break}to&&(!Zt||to<Zt)&&(zr._spread=!0),zr.end=Object.assign({},Zt?O[Zt][1].start:dt[1].end),O.splice(Zt||ne,0,["exit",zr,dt[2]]),ne++,K++}if(dt[1].type==="listItemPrefix"){let Un={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};zr=Un,O.splice(ne,0,["enter",Un,dt[2]]),ne++,K++,to=void 0,ro=!0}}}return O[U][1]._spread=It,K}function o(O,U){return K;function K(ne){a.call(this,O(ne),ne),U&&U.call(this,ne)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(O,U,K){this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push([U,K]),O.position={start:Rr(U.start),end:void 0}}function l(O){return U;function U(K){O&&O.call(this,K),u.call(this,K)}}function u(O,U){let K=this.stack.pop(),ne=this.tokenStack.pop();if(ne)ne[0].type!==O.type&&(U?U.call(this,O,ne[0]):(ne[1]||lS).call(this,O,ne[0]));else throw new Error("Cannot close `"+O.type+"` ("+Pr({start:O.start,end:O.end})+"): it\u2019s not open");K.position.end=Rr(O.end)}function c(){return Cn(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(O){if(this.data.expectingFirstListItemValue){let U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(O),10),this.data.expectingFirstListItemValue=void 0}}function h(){let O=this.resume(),U=this.stack[this.stack.length-1];U.lang=O}function m(){let O=this.resume(),U=this.stack[this.stack.length-1];U.meta=O}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let O=this.resume(),U=this.stack[this.stack.length-1];U.value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){let O=this.resume(),U=this.stack[this.stack.length-1];U.value=O.replace(/(\r?\n|\r)$/g,"")}function C(O){let U=this.resume(),K=this.stack[this.stack.length-1];K.label=U,K.identifier=rt(this.sliceSerialize(O)).toLowerCase()}function w(){let O=this.resume(),U=this.stack[this.stack.length-1];U.title=O}function F(){let O=this.resume(),U=this.stack[this.stack.length-1];U.url=O}function H(O){let U=this.stack[this.stack.length-1];if(!U.depth){let K=this.sliceSerialize(O).length;U.depth=K}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function R(O){let U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(O).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function $(O){let K=this.stack[this.stack.length-1].children,ne=K[K.length-1];(!ne||ne.type!=="text")&&(ne=Pe(),ne.position={start:Rr(O.start),end:void 0},K.push(ne)),this.stack.push(ne)}function A(O){let U=this.stack.pop();U.value+=this.sliceSerialize(O),U.position.end=Rr(O.end)}function ae(O){let U=this.stack[this.stack.length-1];if(this.data.atHardBreak){let K=U.children[U.children.length-1];K.position.end=Rr(O.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(U.type)&&($.call(this,O),A.call(this,O))}function B(){this.data.atHardBreak=!0}function _(){let O=this.resume(),U=this.stack[this.stack.length-1];U.value=O}function I(){let O=this.resume(),U=this.stack[this.stack.length-1];U.value=O}function D(){let O=this.resume(),U=this.stack[this.stack.length-1];U.value=O}function N(){let O=this.stack[this.stack.length-1];if(this.data.inReference){let U=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=U,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function V(){let O=this.stack[this.stack.length-1];if(this.data.inReference){let U=this.data.referenceType||"shortcut";O.type+="Reference",O.referenceType=U,delete O.url,delete O.title}else delete O.identifier,delete O.label;this.data.referenceType=void 0}function P(O){let U=this.sliceSerialize(O),K=this.stack[this.stack.length-2];K.label=kl(U),K.identifier=rt(U).toLowerCase()}function j(){let O=this.stack[this.stack.length-1],U=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){let ne=O.children;K.children=ne}else K.alt=U}function d(){let O=this.resume(),U=this.stack[this.stack.length-1];U.url=O}function G(){let O=this.resume(),U=this.stack[this.stack.length-1];U.title=O}function Z(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function re(O){let U=this.resume(),K=this.stack[this.stack.length-1];K.label=U,K.identifier=rt(this.sliceSerialize(O)).toLowerCase(),this.data.referenceType="full"}function ce(O){this.data.characterReferenceType=O.type}function ke(O){let U=this.sliceSerialize(O),K=this.data.characterReferenceType,ne;K?(ne=Sl(U,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ne=Di(U);let ye=this.stack[this.stack.length-1];ye.value+=ne}function k(O){let U=this.stack.pop();U.position.end=Rr(O.end)}function g(O){A.call(this,O);let U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(O)}function S(O){A.call(this,O);let U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(O)}function T(){return{type:"blockquote",children:[]}}function M(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function pe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function he(){return{type:"emphasis",children:[]}}function me(){return{type:"heading",depth:0,children:[]}}function bt(){return{type:"break"}}function Xe(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function Qt(){return{type:"link",title:null,url:"",children:[]}}function yr(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function _t(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function Rt(){return{type:"paragraph",children:[]}}function vt(){return{type:"strong",children:[]}}function Pe(){return{type:"text",value:""}}function xr(){return{type:"thematicBreak"}}}function Rr(e){return{line:e.line,column:e.column,offset:e.offset}}function cS(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?cS(e,n):LR(e,n)}}function LR(e,t){let r;for(r in t)if(uS.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function lS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Pr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Pr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Pr({start:t.start,end:t.end})+") is still open")}function ls(e){let t=this;t.parser=r;function r(n){return fh(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var pS=Ge(fS(),1),us=Object.assign(Fn(Error),{eval:Fn(EvalError),range:Fn(RangeError),reference:Fn(ReferenceError),syntax:Fn(SyntaxError),type:Fn(TypeError),uri:Fn(URIError)});function Fn(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let i=r&&(0,pS.default)(r,...n);return new e(i)}}var Ll={}.hasOwnProperty,hS={yaml:"-",toml:"+"};function Ri(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=BR(n[r]);return t}function BR(e){let t=e;if(typeof t=="string"){if(!Ll.call(hS,t))throw us("Missing matter definition for `%s`",t);t={type:t,marker:hS[t]}}else if(typeof t!="object")throw us("Expected matter to be an object, not `%j`",t);if(!Ll.call(t,"type"))throw us("Missing `type` in matter `%j`",t);if(!Ll.call(t,"fence")&&!Ll.call(t,"marker"))throw us("Missing `marker` or `fence` in matter `%j`",t);return t}function mh(e){let t=Ri(e),r={},n=-1;for(;++n<t.length;){let i=t[n],o=hh(i,"open").charCodeAt(0),s=$R(i),a=r[o];Array.isArray(a)?a.push(s):r[o]=[s]}return{flow:r}}function $R(e){let t=e.anywhere,r=e.type,n=r+"Fence",i=n+"Sequence",o=r+"Value",s={tokenize:c,partial:!0},a,l=0;return{tokenize:u,concrete:!0};function u(f,p,h){let m=this;return b;function b(R){let W=m.now();return W.column===1&&(W.line===1||t)&&(a=hh(e,"open"),l=0,R===a.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(i),x(R)):h(R)}function x(R){return l===a.length?(f.exit(i),J(R)?(f.enter("whitespace"),v(R)):C(R)):R===a.charCodeAt(l++)?(f.consume(R),x):h(R)}function v(R){return J(R)?(f.consume(R),v):(f.exit("whitespace"),C(R))}function C(R){return q(R)?(f.exit(n),f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),a=hh(e,"close"),l=0,f.attempt(s,E,w)):h(R)}function w(R){return R===null||q(R)?H(R):(f.enter(o),F(R))}function F(R){return R===null||q(R)?(f.exit(o),H(R)):(f.consume(R),F)}function H(R){return R===null?h(R):(f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),f.attempt(s,E,w))}function E(R){return f.exit(r),p(R)}}function c(f,p,h){let m=0;return b;function b(w){return w===a.charCodeAt(m)?(f.enter(n),f.enter(i),x(w)):h(w)}function x(w){return m===a.length?(f.exit(i),J(w)?(f.enter("whitespace"),v(w)):C(w)):w===a.charCodeAt(m++)?(f.consume(w),x):h(w)}function v(w){return J(w)?(f.consume(w),v):(f.exit("whitespace"),C(w))}function C(w){return w===null||q(w)?(f.exit(n),p(w)):h(w)}}}function hh(e,t){return e.marker?mS(e.marker,t).repeat(3):mS(e.fence,t)}function mS(e,t){return typeof e=="string"?e:e[t]}function gh(e){let t=Ri(e),r={},n={},i=-1;for(;++i<t.length;){let o=t[i];r[o.type]=jR(o),n[o.type]=UR,n[o.type+"Value"]=zR}return{enter:r,exit:n}}function jR(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function UR(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function zR(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function yh(e){let t=[],r={},n=Ri(e),i=-1;for(;++i<n.length;){let o=n[i];r[o.type]=qR(o);let s=dh(o,"open");t.push({atBreak:!0,character:s.charAt(0),after:rn(s.charAt(1))})}return{unsafe:t,handlers:r}}function qR(e){let t=dh(e,"open"),r=dh(e,"close");return n;function n(i){return t+(i.value?`
|
|
80
|
+
`+i.value:"")+`
|
|
81
|
+
`+r}}function dh(e,t){return e.marker?dS(e.marker,t).repeat(3):dS(e.fence,t)}function dS(e,t){return typeof e=="string"?e:e[t]}var HR="yaml";function cs(e){let t=this,r=e||HR,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(mh(r)),o.push(gh(r)),s.push(yh(r))}var gS=typeof self=="object"?self:globalThis,WR=(e,t)=>{let r=(i,o)=>(e.set(o,i),i),n=i=>{if(e.has(i))return e.get(i);let[o,s]=t[i];switch(o){case 0:case-1:return r(s,i);case 1:{let a=r([],i);for(let l of s)a.push(n(l));return a}case 2:{let a=r({},i);for(let[l,u]of s)a[n(l)]=n(u);return a}case 3:return r(new Date(s),i);case 4:{let{source:a,flags:l}=s;return r(new RegExp(a,l),i)}case 5:{let a=r(new Map,i);for(let[l,u]of s)a.set(n(l),n(u));return a}case 6:{let a=r(new Set,i);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return r(new gS[a](l),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i)}return r(new gS[o](s),i)};return n},wh=e=>WR(new Map,e)(0);var Li="",{toString:VR}={},{keys:YR}=Object,ms=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=VR.call(e).slice(8,-1);switch(r){case"Array":return[1,Li];case"Object":return[2,Li];case"Date":return[3,Li];case"RegExp":return[4,Li];case"Map":return[5,Li];case"Set":return[6,Li]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},zl=([e,t])=>e===0&&(t==="function"||t==="symbol"),GR=(e,t,r,n)=>{let i=(s,a)=>{let l=n.push(s)-1;return r.set(a,l),l},o=s=>{if(r.has(s))return r.get(s);let[a,l]=ms(s);switch(a){case 0:{let c=s;switch(l){case"bigint":a=8,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([-1],s)}return i([a,c],s)}case 1:{if(l)return i([l,[...s]],s);let c=[],f=i([a,c],s);for(let p of s)c.push(o(p));return f}case 2:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());let c=[],f=i([a,c],s);for(let p of YR(s))(e||!zl(ms(s[p])))&&c.push([o(p),o(s[p])]);return f}case 3:return i([a,s.toISOString()],s);case 4:{let{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case 5:{let c=[],f=i([a,c],s);for(let[p,h]of s)(e||!(zl(ms(p))||zl(ms(h))))&&c.push([o(p),o(h)]);return f}case 6:{let c=[],f=i([a,c],s);for(let p of s)(e||!zl(ms(p)))&&c.push(o(p));return f}}let{message:u}=s;return i([a,{name:l,message:u}],s)};return o},Sh=(e,{json:t,lossy:r}={})=>{let n=[];return GR(!(t||r),!!t,new Map,n)(e),n};var Lr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wh(Sh(e,t)):structuredClone(e):(e,t)=>wh(Sh(e,t));var ql=yS("end"),Hl=yS("start");function yS(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function ds(e){let t=Hl(e),r=ql(e);if(t&&r)return{start:t,end:r}}var Nn=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],kh={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Nn,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Nn],h2:[["className","sr-only"]],img:[...Nn,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Nn,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Nn],table:[...Nn],ul:[...Nn,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};var Br={}.hasOwnProperty;function Ah(e,t){let r={type:"root",children:[]},n={schema:t?{...kh,...t}:kh,stack:[]},i=vS(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function vS(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return JR(e,r);case"doctype":return QR(e,r);case"element":return ZR(e,r);case"root":return XR(e,r);case"text":return KR(e,r);default:}}}function JR(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),o={type:"comment",value:n<0?r:r.slice(0,n)};return gs(o,t),o}}function QR(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return gs(r,t),r}}function ZR(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=wS(e,t.children),i=eL(e,t.properties);e.stack.pop();let o=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(o=!0,e.schema.ancestors&&Br.call(e.schema.ancestors,r))){let a=e.schema.ancestors[r],l=-1;for(o=!1;++l<a.length;)e.stack.includes(a[l])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let s={type:"element",tagName:r,properties:i,children:n};return gs(s,t),s}function XR(e,t){let n={type:"root",children:wS(e,t.children)};return gs(n,t),n}function KR(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return gs(n,t),n}function wS(e,t){let r=[];if(Array.isArray(t)){let n=t,i=-1;for(;++i<n.length;){let o=vS(e,n[i]);o&&(Array.isArray(o)?r.push(...o):r.push(o))}}return r}function eL(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,o=n&&Br.call(n,r)?n[r]:void 0,s=n&&Br.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},u;for(u in a)if(Br.call(a,u)){let c=a[u],f=xS(e,bS(o,u),u,c);f==null&&(f=xS(e,bS(s,u),u,c)),f!=null&&(l[u]=f)}if(i&&Br.call(i,r)){let c=i[r];for(u in c)Br.call(c,u)&&!Br.call(l,u)&&(l[u]=c[u])}return l}function xS(e,t,r,n){return t?Array.isArray(n)?tL(e,t,r,n):SS(e,t,r,n):void 0}function tL(e,t,r,n){let i=-1,o=[];for(;++i<n.length;){let s=SS(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&o.push(s)}return o}function SS(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&rL(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,o=0;for(;++o<t.length;){let s=t[o];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function rL(e,t,r){let n=e.schema.protocols&&Br.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let i=String(r),o=i.indexOf(":"),s=i.indexOf("?"),a=i.indexOf("#"),l=i.indexOf("/");if(o<0||l>-1&&o>l||s>-1&&o>s||a>-1&&o>a)return!0;let u=-1;for(;++u<n.length;){let c=n[u];if(o===c.length&&i.slice(0,c.length)===c)return!0}return!1}function gs(e,t){let r=ds(t);t.data&&(e.data=Lr(t.data)),r&&(e.position=r)}function bS(e,t){let r,n=-1;if(e)for(;++n<e.length;){let i=e[n],o=typeof i=="string"?i:i[0];if(o===t)return i;o==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function kS(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function AS(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
82
|
+
`}]}function ES(e,t){let r=t.value?t.value+`
|
|
83
|
+
`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function TS(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function CS(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _S(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Tt(n.toLowerCase()),o=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function IS(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function OS(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Wl(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function MS(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Wl(e,t);let i={src:Tt(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function PS(e,t){let r={src:Tt(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function DS(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function FS(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Wl(e,t);let i={href:Tt(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function NS(e,t){let r={href:Tt(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RS(e,t,r){let n=e.all(t),i=r?nL(r):LS(t),o={},s=[];if(typeof t.checked=="boolean"){let c=n[0],f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let c=n[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
84
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}let l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
85
|
+
`});let u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function nL(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=LS(r[n])}return t}function LS(e){let t=e.spread;return t??e.children.length>1}function BS(e,t){let r={},n=e.all(t),i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){let s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function $S(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function jS(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function US(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zS(e,t){let r=e.all(t),n=r.shift(),i=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=Hl(t.children[1]),l=ql(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function qS(e,t,r){let n=r?r.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,a=s?s.length:t.children.length,l=-1,u=[];for(;++l<a;){let f=t.children[l],p={},h=s?s[l]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function HS(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function VS(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),i=0,o=[];for(;n;)o.push(WS(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(WS(t.slice(i),i>0,!1)),o.join("")}function WS(e,t,r){let n=0,i=e.length;if(t){let o=e.codePointAt(n);for(;o===9||o===32;)n++,o=e.codePointAt(n)}if(r){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function YS(e,t){let r={type:"text",value:VS(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function GS(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var JS={blockquote:kS,break:AS,code:ES,delete:TS,emphasis:CS,footnoteReference:_S,heading:IS,html:OS,imageReference:MS,image:PS,inlineCode:DS,linkReference:FS,link:NS,listItem:RS,list:BS,paragraph:$S,root:jS,strong:US,table:zS,tableCell:HS,tableRow:qS,text:YS,thematicBreak:GS,toml:Vl,yaml:Vl,definition:Vl,footnoteDefinition:Vl};function Vl(){}function iL(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function oL(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function QS(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||iL,n=e.options.footnoteBackLabel||oL,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;let c=e.all(u),f=String(u.identifier).toUpperCase(),p=Tt(f.toLowerCase()),h=0,m=[],b=e.footnoteCounts.get(f);for(;b!==void 0&&++h<=b;){m.length>0&&m.push({type:"text",value:" "});let C=typeof r=="string"?r:r(l,h);typeof C=="string"&&(C={type:"text",value:C}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}let x=c[c.length-1];if(x&&x.type==="element"&&x.tagName==="p"){let C=x.children[x.children.length-1];C&&C.type==="text"?C.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...m)}else c.push(...m);let v={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Lr(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
86
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
87
|
+
`}]}}var Eh={}.hasOwnProperty,sL={};function XS(e,t){let r=t||sL,n=new Map,i=new Map,o=new Map,s={...JS,...r.handlers},a={all:u,applyData:lL,definitionById:n,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:r,patch:aL,wrap:cL};return rs(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let f=c.type==="definition"?n:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),a;function l(c,f){let p=c.type,h=a.handlers[p];if(Eh.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){let{children:b,...x}=c,v=Lr(x);return v.children=a.all(c),v}return Lr(c)}return(a.options.unknownHandler||uL)(a,c,f)}function u(c){let f=[];if("children"in c){let p=c.children,h=-1;for(;++h<p.length;){let m=a.one(p[h],c);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=ZS(m.value)),!Array.isArray(m)&&m.type==="element")){let b=m.children[0];b&&b.type==="text"&&(b.value=ZS(b.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function aL(e,t){e.position&&(t.position=ds(e))}function lL(e,t){let r=t;if(e&&e.data){let n=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&o&&Object.assign(r.properties,Lr(o)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function uL(e,t){let r=t.data||{},n="value"in t&&!(Eh.call(r,"hProperties")||Eh.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cL(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
|
|
88
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
89
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
90
|
+
`}),r}function ZS(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Th(e,t){let r=XS(e,t),n=r.one(e,void 0),i=QS(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&("children"in o,o.children.push({type:"text",value:`
|
|
91
|
+
`},i)),o}var KS=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var hr=class{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}};hr.prototype.property={};hr.prototype.normal={};hr.prototype.space=null;function Ch(e,t){let r={},n={},i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new hr(r,n,t)}function ys(e){return e.toLowerCase()}var it=class{constructor(t,r){this.property=t,this.attribute=r}};it.prototype.space=null;it.prototype.boolean=!1;it.prototype.booleanish=!1;it.prototype.overloadedBoolean=!1;it.prototype.number=!1;it.prototype.commaSeparated=!1;it.prototype.spaceSeparated=!1;it.prototype.commaOrSpaceSeparated=!1;it.prototype.mustUseProperty=!1;it.prototype.defined=!1;var xs={};oe(xs,{boolean:()=>ee,booleanish:()=>Ce,commaOrSpaceSeparated:()=>pt,commaSeparated:()=>$r,number:()=>L,overloadedBoolean:()=>_h,spaceSeparated:()=>de});var fL=0,ee=Rn(),Ce=Rn(),_h=Rn(),L=Rn(),de=Rn(),$r=Rn(),pt=Rn();function Rn(){return 2**++fL}var Ih=Object.keys(xs),Ln=class extends it{constructor(t,r,n,i){let o=-1;if(super(t,r),ek(this,"space",i),typeof n=="number")for(;++o<Ih.length;){let s=Ih[o];ek(this,Ih[o],(n&xs[s])===xs[s])}}};Ln.prototype.defined=!0;function ek(e,t,r){r&&(e[t]=r)}var pL={}.hasOwnProperty;function Ct(e){let t={},r={},n;for(n in e.properties)if(pL.call(e.properties,n)){let i=e.properties[n],o=new Ln(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[ys(n)]=n,r[ys(o.attribute)]=n}return new hr(t,r,e.space)}var Oh=Ct({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var Mh=Ct({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Yl(e,t){return t in e?e[t]:t}function Gl(e,t){return Yl(e,t.toLowerCase())}var Ph=Ct({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Gl,properties:{xmlns:null,xmlnsXLink:null}});var Dh=Ct({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ce,ariaAutoComplete:null,ariaBusy:Ce,ariaChecked:Ce,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:Ce,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:Ce,ariaFlowTo:de,ariaGrabbed:Ce,ariaHasPopup:null,ariaHidden:Ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:L,ariaLive:null,ariaModal:Ce,ariaMultiLine:Ce,ariaMultiSelectable:Ce,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:Ce,ariaReadOnly:Ce,ariaRelevant:null,ariaRequired:Ce,ariaRoleDescription:de,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:Ce,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}});var tk=Ct({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Gl,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$r,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:de,autoFocus:ee,autoPlay:ee,blocking:de,capture:null,charSet:null,checked:ee,cite:null,className:de,cols:L,colSpan:null,content:null,contentEditable:Ce,controls:ee,controlsList:de,coords:L|$r,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:_h,draggable:Ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:de,height:L,hidden:ee,high:L,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:de,itemRef:de,itemScope:ee,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ee,optimum:L,pattern:null,ping:de,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:de,required:ee,reversed:ee,rows:L,rowSpan:L,sandbox:de,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:Ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:Ce,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:Ce,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:L,security:null,unselectable:null}});var rk=Ct({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Yl,properties:{about:pt,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:de,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$r,g2:$r,glyphName:$r,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pt,rev:pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pt,requiredFeatures:pt,requiredFonts:pt,requiredFormats:pt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pt,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var hL=/^data[-\w.:]+$/i,nk=/-[a-z]/g,mL=/[A-Z]/g;function Fh(e,t){let r=ys(t),n=t,i=it;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&hL.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(nk,gL);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!nk.test(o)){let s=o.replace(mL,dL);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ln}return new i(n,t)}function dL(e){return"-"+e.toLowerCase()}function gL(e){return e.charAt(1).toUpperCase()}var ik=Ch([Mh,Oh,Ph,Dh,tk],"html"),Jl=Ch([Mh,Oh,Ph,Dh,rk],"svg");var yL=/["&'<>`]/g,xL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,vL=/[|\\{}()[\]^$+*?.]/g,ok=new WeakMap;function sk(e,t){if(e=e.replace(t.subset?wL(t.subset):yL,n),t.subset||t.escapeOnly)return e;return e.replace(xL,r).replace(bL,n);function r(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function n(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function wL(e){let t=ok.get(e);return t||(t=SL(e),ok.set(e,t)),t}function SL(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(vL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var kL=/[\dA-Fa-f]/;function ak(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!kL.test(String.fromCharCode(t))?n:n+";"}var AL=/\d/;function lk(e,t,r){let n="&#"+String(e);return r&&t&&!AL.test(String.fromCharCode(t))?n:n+";"}var uk=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Ql={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var ck=["cent","copy","divide","gt","lt","not","para","times"];var fk={}.hasOwnProperty,Nh={},Zl;for(Zl in Ql)fk.call(Ql,Zl)&&(Nh[Ql[Zl]]=Zl);var EL=/[^\dA-Za-z]/;function pk(e,t,r,n){let i=String.fromCharCode(e);if(fk.call(Nh,i)){let o=Nh[i],s="&"+o;return r&&uk.includes(o)&&!ck.includes(o)&&(!n||t&&t!==61&&EL.test(String.fromCharCode(t)))?s:s+";"}return""}function hk(e,t,r){let n=ak(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=pk(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){let o=lk(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function mr(e,t){return sk(e,Object.assign({format:hk},t))}var TL=/^>|^->|<!--|-->|--!>|<!-$/g,CL=[">"],_L=["<",">"];function mk(e,t,r,n){return n.settings.bogusComments?"<?"+mr(e.value,Object.assign({},n.settings.characterReferences,{subset:CL}))+">":"<!--"+e.value.replace(TL,i)+"-->";function i(o){return mr(o,Object.assign({},n.settings.characterReferences,{subset:_L}))}}function dk(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function gk(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function yk(e){return e.join(" ").trim()}var IL=/[ \t\n\f\r]/g;function Bn(e){return typeof e=="object"?e.type==="text"?xk(e.value):!1:xk(e)}function xk(e){return e.replace(IL,"")===""}var Me=bk(1),Rh=bk(-1),OL=[];function bk(e){return t;function t(r,n,i){let o=r?r.children:OL,s=(n||0)+e,a=o[s];if(!i)for(;a&&Bn(a);)s+=e,a=o[s];return a}}var ML={}.hasOwnProperty;function Xl(e){return t;function t(r,n,i){return ML.call(e,r.tagName)&&e[r.tagName](r,n,i)}}var bs=Xl({body:DL,caption:Lh,colgroup:Lh,dd:LL,dt:RL,head:Lh,html:PL,li:NL,optgroup:BL,option:$L,p:FL,rp:vk,rt:vk,tbody:UL,td:wk,tfoot:zL,th:wk,thead:jL,tr:qL});function Lh(e,t,r){let n=Me(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Bn(n.value.charAt(0)))}function PL(e,t,r){let n=Me(r,t);return!n||n.type!=="comment"}function DL(e,t,r){let n=Me(r,t);return!n||n.type!=="comment"}function FL(e,t,r){let n=Me(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function NL(e,t,r){let n=Me(r,t);return!n||n.type==="element"&&n.tagName==="li"}function RL(e,t,r){let n=Me(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function LL(e,t,r){let n=Me(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function vk(e,t,r){let n=Me(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function BL(e,t,r){let n=Me(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function $L(e,t,r){let n=Me(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function jL(e,t,r){let n=Me(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function UL(e,t,r){let n=Me(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function zL(e,t,r){return!Me(r,t)}function qL(e,t,r){let n=Me(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function wk(e,t,r){let n=Me(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var Sk=Xl({body:VL,colgroup:YL,head:WL,html:HL,tbody:GL});function HL(e){let t=Me(e,-1);return!t||t.type!=="comment"}function WL(e){let t=e.children,r=[],n=-1;for(;++n<t.length;){let i=t[n];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(r.includes(i.tagName))return!1;r.push(i.tagName)}}return t.length>0}function VL(e){let t=Me(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Bn(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function YL(e,t,r){let n=Rh(r,t),i=Me(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&bs(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function GL(e,t,r){let n=Rh(r,t),i=Me(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&bs(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}var Kl={name:[[`
|
|
92
|
+
\f\r &/=>`.split(""),`
|
|
93
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
94
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
95
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
96
|
+
\f\r &>`.split(""),`\0
|
|
97
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
98
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
99
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function kk(e,t,r,n){let i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags,s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Jl);let u=JL(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(s=!1),(u||!o||!Sk(e,t,r))&&(a.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!o||!bs(e,t,r))&&a.push("</"+e.tagName+">"),a.join("")}function JL(e,t){let r=[],n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let o=QL(e,i,t[i]);o&&r.push(o)}}for(;++n<r.length;){let o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function QL(e,t,r){let n=Fh(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote,a;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean&&typeof r!="string")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=mr(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Kl.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?gk:yk)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(a=mr(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Kl.unquoted[i][o]}))),a!==r&&(e.settings.quoteSmart&&Oi(r,s)>Oi(r,e.alternative)&&(s=e.alternative),a=s+mr(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Kl.single:Kl.double)[i][o],attribute:!0}))+s),l+(a&&"="+a))}var ZL=["<","&"];function eu(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:mr(e.value,Object.assign({},n.settings.characterReferences,{subset:ZL}))}function Ak(e,t,r,n){return n.settings.allowDangerousHtml?e.value:eu(e,t,r,n)}function Ek(e,t,r,n){return n.all(e)}var Tk=xl("type",{invalid:XL,unknown:KL,handlers:{comment:mk,doctype:dk,element:kk,raw:Ak,root:Ek,text:eu}});function XL(e){throw new Error("Expected node, not `"+e+"`")}function KL(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var e2={},t2={},r2=[];function Bh(e,t){let r=t||e2,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:n2,all:i2,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||KS,characterReferences:r.characterReferences||t2,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Jl:ik,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function n2(e,t,r){return Tk(e,t,r,this)}function i2(e){let t=[],r=e&&e.children||r2,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var o2={};function vs(e){let t=this,{handlers:r,sanitize:n,...i}=e||o2,o=!1,s;typeof n=="boolean"?o=!n:n&&(s=n),t.compiler=a;function a(l,u){let c=Th(l,{handlers:r,allowDangerousHtml:o}),f=o?c:Ah(c,s),p=Bh(f,{...i,allowDangerousHtml:o});return u.extname&&(u.extname=".html"),l&&l.type==="root"&&p&&/[^\r\n]/.test(p.charAt(p.length-1))?p+`
|
|
100
|
+
`:p}}function ws(e){let t=this;t.compiler=r;function r(n){return Np(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function s2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function zh(e,t){return Array(t+1).join(e)}function a2(e){return e.replace(/^\n*/,"")}function l2(e){for(var t=e.length;t>0&&e[t-1]===`
|
|
101
|
+
`;)t--;return e.substring(0,t)}var u2=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function qh(e){return Hh(e,u2)}var Ik=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Ok(e){return Hh(e,Ik)}function c2(e){return Pk(e,Ik)}var Mk=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function f2(e){return Hh(e,Mk)}function p2(e){return Pk(e,Mk)}function Hh(e,t){return t.indexOf(e.nodeName)>=0}function Pk(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var ot={};ot.paragraph={filter:"p",replacement:function(e){return`
|
|
102
|
+
|
|
103
|
+
`+e+`
|
|
104
|
+
|
|
105
|
+
`}};ot.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
|
|
106
|
+
`}};ot.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var i=zh(n===1?"=":"-",e.length);return`
|
|
107
|
+
|
|
108
|
+
`+e+`
|
|
109
|
+
`+i+`
|
|
110
|
+
|
|
111
|
+
`}else return`
|
|
112
|
+
|
|
113
|
+
`+zh("#",n)+" "+e+`
|
|
114
|
+
|
|
115
|
+
`}};ot.blockquote={filter:"blockquote",replacement:function(e){return e=e.replace(/^\n+|\n+$/g,""),e=e.replace(/^/gm,"> "),`
|
|
116
|
+
|
|
117
|
+
`+e+`
|
|
118
|
+
|
|
119
|
+
`}};ot.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
|
|
120
|
+
`+e:`
|
|
121
|
+
|
|
122
|
+
`+e+`
|
|
123
|
+
|
|
124
|
+
`}};ot.listItem={filter:"li",replacement:function(e,t,r){e=e.replace(/^\n+/,"").replace(/\n+$/,`
|
|
125
|
+
`).replace(/\n/gm,`
|
|
126
|
+
`);var n=r.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var o=i.getAttribute("start"),s=Array.prototype.indexOf.call(i.children,t);n=(o?Number(o)+s:s+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?`
|
|
127
|
+
`:"")}};ot.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
|
|
128
|
+
|
|
129
|
+
`+t.firstChild.textContent.replace(/\n/g,`
|
|
130
|
+
`)+`
|
|
131
|
+
|
|
132
|
+
`}};ot.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",i=(n.match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,s=r.fence.charAt(0),a=3,l=new RegExp("^"+s+"{3,}","gm"),u;u=l.exec(o);)u[0].length>=a&&(a=u[0].length+1);var c=zh(s,a);return`
|
|
133
|
+
|
|
134
|
+
`+c+i+`
|
|
135
|
+
`+o.replace(/\n$/,"")+`
|
|
136
|
+
`+c+`
|
|
137
|
+
|
|
138
|
+
`}};ot.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
|
|
139
|
+
|
|
140
|
+
`+r.hr+`
|
|
141
|
+
|
|
142
|
+
`}};ot.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=tu(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}};ot.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t.getAttribute("href"),i=tu(t.getAttribute("title"));i&&(i=' "'+i+'"');var o,s;switch(r.linkReferenceStyle){case"collapsed":o="["+e+"][]",s="["+e+"]: "+n+i;break;case"shortcut":o="["+e+"]",s="["+e+"]: "+n+i;break;default:var a=this.references.length+1;o="["+e+"]["+a+"]",s="["+a+"]: "+n+i}return this.references.push(s),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
|
|
143
|
+
|
|
144
|
+
`+this.references.join(`
|
|
145
|
+
`)+`
|
|
146
|
+
|
|
147
|
+
`,this.references=[]),t}};ot.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};ot.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};ot.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};ot.image={filter:"img",replacement:function(e,t){var r=tu(t.getAttribute("alt")),n=t.getAttribute("src")||"",i=tu(t.getAttribute("title")),o=i?' "'+i+'"':"";return n?"":""}};function tu(e){return e?e.replace(/(\n+\s*)+/g,`
|
|
148
|
+
`):""}function Dk(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}Dk.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=$h(this.array,e,this.options))||(t=$h(this._keep,e,this.options))||(t=$h(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function $h(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(h2(i,t,r))return i}}function h2(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function m2(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(f){return f.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,s=!1,a=null,l=Ck(a,t,i);l!==t;){if(l.nodeType===3||l.nodeType===4){var u=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){l=jh(l);continue}l.data=u,o=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):n(l)||i(l)?(o=null,s=!0):o&&(s=!1);else{l=jh(l);continue}var c=Ck(a,l,i);a=l,l=c}o&&(o.data=o.data.replace(/ $/,""),o.data||jh(o))}}function jh(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function Ck(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var Wh=typeof window<"u"?window:{};function d2(){var e=Wh.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function g2(){var e=function(){};return y2()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}function y2(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{Wh.ActiveXObject&&(e=!0)}return e}var x2=d2()?Wh.DOMParser:g2();function b2(e,t){var r;if(typeof e=="string"){var n=v2().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return m2({element:r,isBlock:qh,isVoid:Ok,isPre:t.preformattedCode?w2:null}),r}var Uh;function v2(){return Uh=Uh||new x2,Uh}function w2(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function S2(e,t){return e.isBlock=qh(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=k2(e),e.flankingWhitespace=A2(e,t),e}function k2(e){return!Ok(e)&&!f2(e)&&/^\s*$/i.test(e.textContent)&&!c2(e)&&!p2(e)}function A2(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=E2(e.textContent);return r.leadingAscii&&_k("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&_k("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function E2(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function _k(e,t,r){var n,i,o;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?o=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!qh(n)&&(o=i.test(n.textContent))),o}var T2=Array.prototype.reduce,C2=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function ru(e){if(!(this instanceof ru))return new ru(e);var t={rules:ot,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
|
|
149
|
+
|
|
150
|
+
`:""},keepReplacement:function(r,n){return n.isBlock?`
|
|
151
|
+
|
|
152
|
+
`+n.outerHTML+`
|
|
153
|
+
|
|
154
|
+
`:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
|
|
155
|
+
|
|
156
|
+
`+r+`
|
|
157
|
+
|
|
158
|
+
`:r}};this.options=s2({},t,e),this.rules=new Dk(this.options)}ru.prototype={turndown:function(e){if(!O2(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=Fk.call(this,new b2(e,this.options));return _2.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return C2.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function Fk(e){var t=this;return T2.call(e.childNodes,function(r,n){n=new S2(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=I2.call(t,n)),Nk(r,i)},"")}function _2(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=Nk(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function I2(e){var t=this.rules.forNode(e),r=Fk.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function Nk(e,t){var r=l2(e),n=a2(t),i=Math.max(e.length-r.length,t.length-n.length),o=`
|
|
159
|
+
|
|
160
|
+
`.substring(0,i);return r+o+n}function O2(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var Vh=ru;var nu={};oe(nu,{gfm:()=>F2,highlightedCodeBlock:()=>Lk,strikethrough:()=>Bk,tables:()=>jk,taskListItems:()=>Uk});var Rk=/highlight-(?:text|source)-([a-z0-9]+)/;function Lk(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&Rk.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var i=r.className||"",o=(i.match(Rk)||[null,""])[1];return`
|
|
161
|
+
|
|
162
|
+
`+n.fence+o+`
|
|
163
|
+
`+r.firstChild.textContent+`
|
|
164
|
+
`+n.fence+`
|
|
165
|
+
|
|
166
|
+
`}})}function Bk(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var M2=Array.prototype.indexOf,P2=Array.prototype.every,Bi={};Bi.tableCell={filter:["th","td"],replacement:function(e,t){return $k(e,t)}};Bi.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Yh(t))for(var i=0;i<t.childNodes.length;i++){var o="---",s=(t.childNodes[i].getAttribute("align")||"").toLowerCase();s&&(o=n[s]||o),r+=$k(o,t.childNodes[i])}return`
|
|
167
|
+
`+e+(r?`
|
|
168
|
+
`+r:"")}};Bi.table={filter:function(e){return e.nodeName==="TABLE"&&Yh(e.rows[0])},replacement:function(e){return e=e.replace(`
|
|
169
|
+
|
|
170
|
+
`,`
|
|
171
|
+
`),`
|
|
172
|
+
|
|
173
|
+
`+e+`
|
|
174
|
+
|
|
175
|
+
`}};Bi.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function Yh(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||D2(t))&&P2.call(e.childNodes,function(r){return r.nodeName==="TH"})}function D2(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function $k(e,t){var r=M2.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function jk(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Yh(r.rows[0])});for(var t in Bi)e.addRule(t,Bi[t])}function Uk(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function F2(e){e.use([Lk,Bk,jk,Uk])}var iu=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await ml().use(ls).use(as).use(cs,["yaml","toml"]).use(ws).use(vs).use(()=>i=>{console.dir(i);let o=i.children.find(s=>s.type==="yaml");o&&(r=o.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await zk.yamlStringToObject(r):this.frontmatterData={}}};var Gh=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await iu.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new Vh({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(nu.gfm),r.turndown(t)}};var lu={};oe(lu,{SmartRouter:()=>Xh});var su={};oe(su,{compile:()=>R2,match:()=>L2,parse:()=>Jh,pathToRegexp:()=>Zh,regexpToFunction:()=>Wk,tokensToFunction:()=>Hk,tokensToRegexp:()=>Vk});function N2(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",o=r+1;o<e.length;){var s=e.charCodeAt(o);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=o;continue}if(n==="("){var a=1,l="",o=r+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if(e[o]==="\\"){l+=e[o++]+e[o++];continue}if(e[o]===")"){if(a--,a===0){o++;break}}else if(e[o]==="("&&(a++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));l+=e[o++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=o;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Jh(e,t){t===void 0&&(t={});for(var r=N2(e),n=t.prefixes,i=n===void 0?"./":n,o="[^".concat($i(t.delimiter||"/#?"),"]+?"),s=[],a=0,l=0,u="",c=function(E){if(l<r.length&&r[l].type===E)return r[l++].value},f=function(E){var R=c(E);if(R!==void 0)return R;var W=r[l],$=W.type,A=W.index;throw new TypeError("Unexpected ".concat($," at ").concat(A,", expected ").concat(E))},p=function(){for(var E="",R;R=c("CHAR")||c("ESCAPED_CHAR");)E+=R;return E};l<r.length;){var h=c("CHAR"),m=c("NAME"),b=c("PATTERN");if(m||b){var x=h||"";i.indexOf(x)===-1&&(u+=x,x=""),u&&(s.push(u),u=""),s.push({name:m||a++,prefix:x,suffix:"",pattern:b||o,modifier:c("MODIFIER")||""});continue}var v=h||c("ESCAPED_CHAR");if(v){u+=v;continue}u&&(s.push(u),u="");var C=c("OPEN");if(C){var x=p(),w=c("NAME")||"",F=c("PATTERN")||"",H=p();f("CLOSE"),s.push({name:w||(F?a++:""),pattern:w&&!F?o:F,prefix:x,suffix:H,modifier:c("MODIFIER")||""});continue}f("END")}return s}function R2(e,t){return Hk(Jh(e,t),t)}function Hk(e,t){t===void 0&&(t={});var r=Qh(t),n=t.encode,i=n===void 0?function(l){return l}:n,o=t.validate,s=o===void 0?!0:o,a=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var u="",c=0;c<e.length;c++){var f=e[c];if(typeof f=="string"){u+=f;continue}var p=l?l[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",m=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!m)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(p.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var b=0;b<p.length;b++){var x=i(p[b],f);if(s&&!a[c].test(x))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(x,'"'));u+=f.prefix+x+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var x=i(String(p),f);if(s&&!a[c].test(x))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(x,'"'));u+=f.prefix+x+f.suffix;continue}if(!h){var v=m?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(v))}}return u}}function L2(e,t){var r=[],n=Zh(e,r,t);return Wk(n,r,t)}function Wk(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(o){return o}:n;return function(o){var s=e.exec(o);if(!s)return!1;for(var a=s[0],l=s.index,u=Object.create(null),c=function(p){if(s[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?u[h.name]=s[p].split(h.prefix+h.suffix).map(function(m){return i(m,h)}):u[h.name]=i(s[p],h)},f=1;f<s.length;f++)c(f);return{path:a,index:l,params:u}}}function $i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Qh(e){return e&&e.sensitive?"":"i"}function B2(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function $2(e,t,r){var n=e.map(function(i){return Zh(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Qh(r))}function j2(e,t,r){return Vk(Jh(e,r),t,r)}function Vk(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,o=r.start,s=o===void 0?!0:o,a=r.end,l=a===void 0?!0:a,u=r.encode,c=u===void 0?function(A){return A}:u,f=r.delimiter,p=f===void 0?"/#?":f,h=r.endsWith,m=h===void 0?"":h,b="[".concat($i(m),"]|$"),x="[".concat($i(p),"]"),v=s?"^":"",C=0,w=e;C<w.length;C++){var F=w[C];if(typeof F=="string")v+=$i(c(F));else{var H=$i(c(F.prefix)),E=$i(c(F.suffix));if(F.pattern)if(t&&t.push(F),H||E)if(F.modifier==="+"||F.modifier==="*"){var R=F.modifier==="*"?"?":"";v+="(?:".concat(H,"((?:").concat(F.pattern,")(?:").concat(E).concat(H,"(?:").concat(F.pattern,"))*)").concat(E,")").concat(R)}else v+="(?:".concat(H,"(").concat(F.pattern,")").concat(E,")").concat(F.modifier);else F.modifier==="+"||F.modifier==="*"?v+="((?:".concat(F.pattern,")").concat(F.modifier,")"):v+="(".concat(F.pattern,")").concat(F.modifier);else v+="(?:".concat(H).concat(E,")").concat(F.modifier)}}if(l)i||(v+="".concat(x,"?")),v+=r.endsWith?"(?=".concat(b,")"):"$";else{var W=e[e.length-1],$=typeof W=="string"?x.indexOf(W[W.length-1])>-1:W===void 0;i||(v+="(?:".concat(x,"(?=").concat(b,"))?")),$||(v+="(?=".concat(x,"|").concat(b,")"))}return new RegExp(v,Qh(r))}function Zh(e,t,r){return e instanceof RegExp?B2(e,t):Array.isArray(e)?$2(e,t,r):j2(e,t,r)}var au=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var i=new URLSearchParams(window.location.search);i.set(t,r),n==="push"?history.pushState(null,null,"?"+i.toString()):history.replaceState(null,null,"?"+i.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var Xh=class{constructor(t){this.options={debug:!1},this.queryParams=new au,this.routes=[],this.options={...this.options,...t},window.addEventListener("popstate",r=>{r.preventDefault(),this._handleRouteState()})}async pushUrl(t="/",r={}){t!==window.location.pathname?window.history.pushState(r,window.document.title,t):window.history.replaceState(r,window.document.title,t),await this._handleRouteState()}on(t,r){this.routes.push({matchFunction:su.match(t),handler:r})}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let i=n.matchFunction(t);n.handler({...i.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}};var ji={};oe(ji,{Smartstate:()=>em,StateAction:()=>Ss,StatePart:()=>ks});var fu={};oe(fu,{sha256FromString:()=>W2});var cu={};oe(cu,{Smartenv:()=>Kh});var Gk=Ge(Yk(),1);var Kh=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}return new Function(`return import('${t}')`)()}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=Gk.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var H2=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let o=r.getUint32(n).toString(16),s="00000000",a=(s+o).slice(-s.length);t.push(a)}return t.join("")},W2=async e=>{let t=new cu.Smartenv;if(t.isBrowser){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return H2(n)}else if(t.isNode)return await(await t.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(e)};var Ss=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){this.statePartRef.dispatchAction(this,t)}};var ks=class{constructor(t,r){this.state=new xe.rxjs.Subject,this.cumulativeDeferred=te.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Ir.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&(this.stateStore=t,this.notifyChange())}}getState(){return this.stateStore}async setState(t){return this.stateStore=t,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}notifyChange(){let t=r=>fu.sha256FromString(Ve.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&t(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(t){return t||(t=n=>n),this.state.pipe(xe.rxjs.ops.startWith(this.getState()),xe.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Ss(this,t)}async dispatchAction(t,r){await this.cumulativeDeferred.promise;let n=await t.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(t){let r=te.defer(),i=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),o=await r.promise;return i.unsubscribe(),o}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var em=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n){if(this.statePartMap[t]){if(r&&(!n||n!=="soft"))throw new Error(`${t} already exists, yet you try to set an initial state again`);return this.statePartMap[t]}else{if(!r)throw new Error(`${t} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n){let i=new ks(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await i.init();let o=i.getState();return await i.setState({...r,...o}),this.statePartMap[t]=i,i}};var Ui={};oe(Ui,{Smarturl:()=>tm});var tm=class e{static createFromUrl(t,r){let n=new URL(t),i={},o=[];n.search&&n.search.replace("?","").split("&").map(u=>{o.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of o)i[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))i[u]=r.searchParams[u];let s=n.pathname||"";if(Object.keys(i).length>0){s+="?";let u=!0;for(let c of Object.keys(i))u?u=!1:s+="&",s+=`${c}=${i[c]}`}let a={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:s,pathname:n.pathname,search:n.search,searchParams:i,hash:n.hash};!a.port&&a.protocol==="https:"&&(a.port="443"),!a.port&&a.protocol==="http:"&&(a.port="80");let l=new e;return Object.assign(l,a),l}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var qi={};oe(qi,{CumulativeDeferred:()=>hu,Deferred:()=>pu,cumulativeDefer:()=>Y2,defer:()=>zi,getFirstTrueOrFalse:()=>X2,map:()=>Q2,rejectedPromise:()=>J2,resolvedPromise:()=>G2,timeoutAndContinue:()=>Z2,timeoutWrap:()=>Jk});var pu=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},zi=()=>new pu;var hu=class{constructor(){this.accumulatedPromises=[],this.deferred=zi(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},Y2=()=>new hu;var G2=e=>Promise.resolve(e),J2=e=>Promise.reject(e),Q2=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},Jk=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),Z2=async(e,t=6e4)=>Jk(e,t,!1),X2=async e=>{let t=zi();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var jr=class{appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var Hi=class e extends jr{static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var ht=class e extends jr{static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var Wi=class{set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(Hi.createCompanyJsonLd(t)),this.addTag(new ht("og:type","business.business")),this.addTag(new ht("og:title",t.name)),this.addTag(new ht("og:url",t.contact.website)),this.addTag(new ht("og:image",t.contact.logoUrl)),this.addTag(new ht("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new ht("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new ht("business:contact_data:region",t.contact.address.city)),this.addTag(new ht("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new ht("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(Hi.createNewsArticleJsonLd(t)),this.addTag(ht.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(Hi.createProductJsonLd(t,r)),this.addTag(ht.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var Nt=class extends jr{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var mu=class{constructor(){this.globalLevel=new Wi(this,"global"),this.baseLevel=new Wi(this,"base")}async setup(t){switch(this.globalLevel.addTag(new Nt("google","notranslate")),this.globalLevel.addTag(new Nt("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new Nt("twitter:card","summary_large_image")),this.globalLevel.addTag(new Nt("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new Nt("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new Nt("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new Nt("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new Wi(this,"subpage");return r.title=t.title,t.description&&r.addTag(new Nt("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var du=class{constructor(t){this.tagManager=new mu,this.readyDeferred=qi.defer(),this.readyForSmartssrDeferred=qi.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var iB=Ge(hc(),1);var Vi=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var oB=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),gu=class e{constructor(){this.fastMap=new Vi,this.eventSubject=new xe.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=oB("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var yu=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new nn.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=te.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var As=Ge(Xk(),1);var im={ObjectMap:gu,Stringmap:yu,FastMap:Vi};var dr={};oe(dr,{cssForDesktop:()=>sB,cssForNotebook:()=>aB,cssForPhablet:()=>uB,cssForPhone:()=>cB,cssForTablet:()=>lB,desktop:()=>om,notebook:()=>sm,phablet:()=>lm,phone:()=>um,tablet:()=>am});var om=1600,sm=1240,am=1024,lm=600,um=400,sB=e=>_e(`
|
|
176
|
+
@container wccToolsViewport (min-width: ${om}px) {
|
|
177
|
+
${e.cssText}
|
|
178
|
+
}
|
|
179
|
+
@media (min-width: ${om}px) {
|
|
180
|
+
${e.cssText}
|
|
181
|
+
}
|
|
182
|
+
`),aB=e=>_e(`
|
|
183
|
+
@container wccToolsViewport (max-width: ${sm}px) {
|
|
184
|
+
${e.cssText}
|
|
185
|
+
}
|
|
186
|
+
@media (max-width: ${sm}px) {
|
|
187
|
+
${e.cssText}
|
|
188
|
+
}
|
|
189
|
+
`),lB=e=>_e(`
|
|
190
|
+
@container wccToolsViewport (max-width: ${am}px) {
|
|
191
|
+
${e.cssText}
|
|
192
|
+
}
|
|
193
|
+
@media (max-width: ${am}px) {
|
|
194
|
+
${e.cssText}
|
|
195
|
+
}
|
|
196
|
+
`),uB=e=>_e(`
|
|
197
|
+
@container wccToolsViewport (max-width: ${lm}px) {
|
|
198
|
+
${e.cssText}
|
|
199
|
+
}
|
|
200
|
+
@media (max-width: ${lm}px) {
|
|
201
|
+
${e.cssText}
|
|
202
|
+
}
|
|
203
|
+
`),cB=e=>_e(`
|
|
204
|
+
@container wccToolsViewport (max-width: ${um}px) {
|
|
205
|
+
${e.cssText}
|
|
206
|
+
}
|
|
207
|
+
@media (max-width: ${um}px) {
|
|
208
|
+
${e.cssText}
|
|
209
|
+
}
|
|
210
|
+
`);var bu=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new xe.rxjs.ReplaySubject(1),this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async updateAllConnectedElements(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000"),this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var cm;(function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"})(cm||(cm={}));var vu=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=cm,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(t){let r=new xe.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var Gt=class e{static async setupDomTools(t={}){let r;if(!globalThis.deesDomTools&&!t.ignoreGlobal){globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.domReady.resolve())};document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}else t.ignoreGlobal?r=new e(t):r=globalThis.deesDomTools;return await r.domToolsReady.promise,r}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(t){this.elements={headElement:null,bodyElement:null},this.websetup=new du({metaObject:{title:"loading..."}}),this.smartstate=new ji.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new lu.SmartRouter({debug:!1}),this.convenience={typedrequest:At,smartdelay:fe,smartjson:Ve,smarturl:Ui},this.deesComms=new el.DeesComms,this.scroller=new As.default({}),this.themeManager=new bu(this),this.keyboard=new vu(document.body),this.domToolsReady=te.defer(),this.domReady=te.defer(),this.globalStylesReady=te.defer(),this.runOnceTrackerStringMap=new im.Stringmap,this.runOnceResultMap=new im.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);let i=await r();this.runOnceResultMap.addToMap(t,i),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(i=>!i.includes(n),()=>this.runOnceResultMap.getByKey(t))}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=te.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var wu=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?Se``.cssText:"";return Se`
|
|
211
|
+
/* width */
|
|
212
|
+
::-webkit-scrollbar {
|
|
213
|
+
width: 0px;
|
|
214
|
+
}
|
|
215
|
+
body {
|
|
216
|
+
scrollbar-width: none;
|
|
217
|
+
}
|
|
218
|
+
`.cssText})(),Kk=Se`
|
|
219
|
+
/*
|
|
220
|
+
@font-face {
|
|
221
|
+
font-family: 'Material Icons';
|
|
222
|
+
font-style: normal;
|
|
223
|
+
font-weight: 400;
|
|
224
|
+
src: url(https://fonts.gstatic.com/s/materialicons/v42/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2)
|
|
225
|
+
format('woff2');
|
|
226
|
+
} */
|
|
227
|
+
|
|
228
|
+
/* global body styles */
|
|
229
|
+
body {
|
|
230
|
+
margin: 0px;
|
|
231
|
+
font-family: 'Roboto', 'Inter', sans-serif;
|
|
232
|
+
box-sizing: border-box;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* scroll bar styles */
|
|
236
|
+
${_e(wu)}
|
|
237
|
+
`.cssText;var fB=Se`
|
|
238
|
+
* {
|
|
239
|
+
transition: background 0.1s, color 0.1s;
|
|
240
|
+
box-sizing: border-box;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:host {
|
|
244
|
+
box-sizing: border-box;
|
|
245
|
+
font-family: 'Roboto', 'Inter', sans-serif;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
${_e(wu)}
|
|
249
|
+
`,pB=le`
|
|
250
|
+
<style>
|
|
251
|
+
* {
|
|
252
|
+
transition: background 0.1s, color 0.1s;
|
|
253
|
+
box-sizing: border-box;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
:host {
|
|
257
|
+
font-family: 'Roboto', 'Inter', sans-serif;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
${wu}
|
|
261
|
+
</style>
|
|
262
|
+
`,hB=async(e,t={})=>{let r=await Gt.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(Kk)}),r};var fm={};oe(fm,{cssGridColumns:()=>mB});var mB=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var dB={smartdelay:fe,smartmarkdown:ou,smartpromise:te,SweetScroll:As.default,smartstate:ji,smartrx:xe,smartstring:Cr,smarturl:Ui,typedrequest:At};var $n={css:Se,unsafeCSS:_e,LitElement:br,property:yt};var Su=class{constructor(){this.domtoolsPromise=Gt.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(t,r)=>{let n="";for(let i=0;i<t;i++)n+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return $n.unsafeCSS(n)},this.domtoolsPromise.then(async t=>{t.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await t.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return at.staticStyles}cssForDesktop(t){return _e(dr.cssForDesktop(t))}cssForNotebook(t){return _e(dr.cssForNotebook(t))}cssForTablet(t){return _e(dr.cssForTablet(t))}cssForPhablet(t){return _e(dr.cssForPhablet(t))}cssForPhone(t){return _e(dr.cssForPhone(t))}bdTheme(t,r){let n,i;Gt.getGlobalDomToolsSync()?i=Gt.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:i=r;let o=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(o)n=o.cssVarName;else{let s={cssVarName:`--${e1.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async a=>{await a.domReady.promise,document.body.style.setProperty(s.cssVarName,i)}),n=s.cssVarName}return $n.unsafeCSS(`var(${n}, ${i})`)}};var Gi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xt=e=>(...t)=>({_$litDirective$:e,values:t}),Yi=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var Es=class extends Yi{constructor(t){if(super(t),this.it=Ie,t.type!==Gi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Ie||t==null)return this._t=void 0,this.it=t;if(t===De)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Es.directiveName="unsafeHTML",Es.resultType=1;var gB=xt(Es);var Ze=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var{I:yB}=Mm,n1=e=>e===null||typeof e!="object"&&typeof e!="function";var i1=e=>e.strings===void 0,r1=()=>document.createComment(""),o1=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=n.insertBefore(r1(),i),s=n.insertBefore(r1(),i);r=new yB(o,s,e,e.options)}else{let o=r._$AB.nextSibling,s=r._$AM,a=s!==e;if(a){let l;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(l=e._$AU)!==s._$AU&&r._$AP(l)}if(o!==i||a){let l=r._$AA;for(;l!==o;){let u=l.nextSibling;n.insertBefore(l,i),l=u}}}return r},s1=(e,t,r=e)=>(e._$AI(t,r),e);var a1=e=>{e._$AR()};var Ts=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),Ts(n,t);return!0},Au=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},l1=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),vB(t)}};function xB(e){this._$AN!==void 0?(Au(this),this._$AM=e,l1(this)):this._$AM=e}function bB(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)Ts(n[o],!1),Au(n[o]);else n!=null&&(Ts(n,!1),Au(n));else Ts(this,e)}var vB=e=>{e.type==Gi.CHILD&&(e._$AP??=bB,e._$AQ??=xB)},Jt=class extends Yi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),l1(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Ts(this,t),Au(this))}setValue(t){if(i1(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var u1=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},Ji=class{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}},Qi=class{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise(t=>this.q=t)}resume(){this.q?.(),this.Z=this.q=void 0}};var c1=e=>!n1(e)&&typeof e.then=="function",f1=1073741823,pm=class extends Jt{constructor(){super(...arguments),this._$Cwt=f1,this._$Cbt=[],this._$CK=new Ji(this),this._$CX=new Qi}render(...t){return t.find(r=>!c1(r))??De}update(t,r){let n=this._$Cbt,i=n.length;this._$Cbt=r;let o=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$Cwt);a++){let l=r[a];if(!c1(l))return this._$Cwt=a,l;a<i&&l===n[a]||(this._$Cwt=f1,i=0,Promise.resolve(l).then(async u=>{for(;s.get();)await s.get();let c=o.deref();if(c!==void 0){let f=c._$Cbt.indexOf(l);f>-1&&f<c._$Cwt&&(c._$Cwt=f,c.setValue(u))}}))}return De}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},wB=xt(pm);var Cs=class extends Jt{constructor(){super(...arguments),this._$CK=new Ji(this),this._$CX=new Qi}render(t,r){return De}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return De;this._$CJ=r;let i=0,{_$CK:o,_$CX:s}=this;return u1(r,async a=>{for(;s.get();)await s.get();let l=o.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,i)),l.commitValue(a,i),i++}return!0}),De}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},aie=xt(Cs);var SB=xt(class extends Cs{constructor(e){if(super(e),e.type!==Gi.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$Ctt=e,super.update(e,t)}commitValue(e,t){t===0&&a1(this._$Ctt);let r=o1(this._$Ctt);s1(r,e)}});var p1=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},h1=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Be=class extends $n.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Qe.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=Qe.elementBasic.setup(this,t),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let t=await this.domtoolsPromise;this.themeSubscription=t.themeManager.themeObservable.subscribe(r=>{this.goBright=r}),this.rxSubscriptions.push(this.themeSubscription);for(let r of this.startupFunctions)await r();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(t){super.firstUpdated(t),this.elementDomReadyDeferred.resolve()}registerStartupFunction(t){this.startupFunctions.push(t)}registerGarbageFunction(t){this.garbageFunctions.push(t)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let t of this.rxSubscriptions)t.unsubscribe();for(let t of this.garbageFunctions)await t();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};p1([$n.property({type:Boolean}),h1("design:type",Boolean)],Be.prototype,"goBright",void 0);p1([$n.property(),h1("design:type",Qe.DomTools)],Be.prototype,"domtools",void 0);var hm=class extends Jt{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),De}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},kB=xt(hm);var mm=class extends Jt{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),De}handlePromise(t){this.hasPromiseSettled=!1,t.then(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},AB=xt(mm);var ge=new Su;var Eu=class extends Be{render(){return le`
|
|
263
|
+
${at.styles}
|
|
264
|
+
<style>
|
|
265
|
+
:host {
|
|
266
|
+
display: block;
|
|
267
|
+
font-family: Inter;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
h5 {
|
|
271
|
+
display: block;
|
|
272
|
+
max-width: 900px;
|
|
273
|
+
margin: 0px auto;
|
|
274
|
+
padding: 0px 0px 10px 0px;
|
|
275
|
+
color: #707070;
|
|
276
|
+
}
|
|
277
|
+
</style>
|
|
278
|
+
<h5>${this.textContent}</h5>
|
|
279
|
+
`}};Eu=Ae([Ze("uplinternal-miniheading")],Eu);var Zi=class extends Be{constructor(){super()}render(){return le`
|
|
280
|
+
<style>
|
|
281
|
+
|
|
282
|
+
</style>
|
|
283
|
+
<uplinternal-miniheading>Monitored Assets</uplinternal-miniheading>
|
|
284
|
+
<div class="mainbox">
|
|
285
|
+
Hello!
|
|
286
|
+
</div>
|
|
287
|
+
`}};Zi.demo=()=>le`
|
|
288
|
+
<upl-statuspage-assetsselector></upl-statuspage-assetsselector>
|
|
289
|
+
`,Zi.styles=[ge.defaultStyles,Se`
|
|
290
|
+
:host {
|
|
291
|
+
padding: 0px 0px 15px 0px;
|
|
292
|
+
display: block;
|
|
293
|
+
background: ${ge.bdTheme("#eeeeeb","#222222")};
|
|
294
|
+
font-family: Inter;
|
|
295
|
+
color: #fff;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.mainbox {
|
|
299
|
+
margin: auto;
|
|
300
|
+
max-width: 900px;
|
|
301
|
+
text-align: center;
|
|
302
|
+
height: 50px;
|
|
303
|
+
border-radius: 3px;
|
|
304
|
+
background: ${ge.bdTheme("#ffffff","#333333")};;
|
|
305
|
+
}
|
|
306
|
+
`],Zi=Ae([Ze("upl-statuspage-assetsselector")],Zi);var Ur=class extends Be{constructor(){super();this.legalInfo="https://lossless.gmbh";this.whitelabel=!1}render(){return le`
|
|
307
|
+
${at.styles}
|
|
308
|
+
<style></style>
|
|
309
|
+
<div class="mainbox">
|
|
310
|
+
Hi there
|
|
311
|
+
</div>
|
|
312
|
+
`}dispatchReportNewIncident(){this.dispatchEvent(new CustomEvent("reportNewIncident",{}))}dispatchStatusSubscribe(){this.dispatchEvent(new CustomEvent("statusSubscribe",{}))}};Ur.demo=()=>le`
|
|
313
|
+
<upl-statuspage-footer></upl-statuspage-footer>
|
|
314
|
+
`,Ur.styles=[at.staticStyles,Se`
|
|
315
|
+
:host {
|
|
316
|
+
display: block;
|
|
317
|
+
background: ${ge.bdTheme("#ffffff","#000000")};
|
|
318
|
+
font-family: Inter;
|
|
319
|
+
color: ${ge.bdTheme("#333333","#ffffff")};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.mainbox {
|
|
323
|
+
max-width: 900px;
|
|
324
|
+
margin: auto;
|
|
325
|
+
padding-top: 20px;
|
|
326
|
+
padding-bottom: 20px;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
`],Ae([yt()],Ur.prototype,"legalInfo",2),Ae([yt({type:Boolean})],Ur.prototype,"whitelabel",2),Ur=Ae([Ze("upl-statuspage-footer")],Ur);var jn=class extends Be{constructor(){super();this.pageTitle="Statuspage Title"}render(){return le`
|
|
330
|
+
${at.styles}
|
|
331
|
+
<style>
|
|
332
|
+
|
|
333
|
+
</style>
|
|
334
|
+
<div class="mainbox">
|
|
335
|
+
<div class="actions">
|
|
336
|
+
<div class="actionButton" @click=${this.dispatchReportNewIncident}>report new incident</div>
|
|
337
|
+
<div class="actionButton" @click=${this.dispatchStatusSubscribe}>subscribe</div>
|
|
338
|
+
</div>
|
|
339
|
+
<h1>${this.pageTitle}</h1>
|
|
340
|
+
<h2>STATUS BOARD</h2>
|
|
341
|
+
</div>
|
|
342
|
+
`}dispatchReportNewIncident(){this.dispatchEvent(new CustomEvent("reportNewIncident",{}))}dispatchStatusSubscribe(){this.dispatchEvent(new CustomEvent("statusSubscribe",{}))}};jn.demo=()=>le`
|
|
343
|
+
<upl-statuspage-header></upl-statuspage-header>
|
|
344
|
+
`,jn.styles=[at.staticStyles,Se`
|
|
345
|
+
:host {
|
|
346
|
+
display: block;
|
|
347
|
+
background: ${ge.bdTheme("#eeeeeb","#222222")};
|
|
348
|
+
font-family: Inter;
|
|
349
|
+
color: ${ge.bdTheme("#333333","#ffffff")};
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.mainbox {
|
|
353
|
+
margin: auto;
|
|
354
|
+
max-width: 900px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.mainbox .actions {
|
|
358
|
+
display: flex;
|
|
359
|
+
justify-content: flex-end;
|
|
360
|
+
padding: 20px 0px 40px 0px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.mainbox .actions .actionButton {
|
|
364
|
+
background: ${ge.bdTheme("#00000000","#ffffff00")};
|
|
365
|
+
|
|
366
|
+
font-size: 12px;
|
|
367
|
+
border: 1px solid ${ge.bdTheme("#333","#CCC")};
|
|
368
|
+
padding: 6px 10px 7px 10px;
|
|
369
|
+
margin-left: 10px;
|
|
370
|
+
border-radius: 3px;
|
|
371
|
+
cursor: pointer;
|
|
372
|
+
user-select: none;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.mainbox .actions .actionButton:hover {
|
|
376
|
+
background: ${ge.bdTheme("#333333","#efefef")};
|
|
377
|
+
border: 1px solid ${ge.bdTheme("#333333","#efefef")};
|
|
378
|
+
color: ${ge.bdTheme("#fff","#333333")};
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
h1 {
|
|
382
|
+
margin: 0px;
|
|
383
|
+
text-align: center;
|
|
384
|
+
font-weight: 600;
|
|
385
|
+
font-size: 35px;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
h2 {
|
|
389
|
+
margin: 0px;
|
|
390
|
+
margin-top: 10px;
|
|
391
|
+
text-align: center;
|
|
392
|
+
font-weight: 600;
|
|
393
|
+
font-size: 18px;
|
|
394
|
+
}
|
|
395
|
+
`],Ae([yt()],jn.prototype,"pageTitle",2),jn=Ae([Ze("upl-statuspage-header")],jn);var gr=class extends Be{constructor(){super();this.currentIncidences=[];this.pastIncidences=[];this.whitelabel=!1}render(){return le`
|
|
396
|
+
<style></style>
|
|
397
|
+
<div class="mainbox">
|
|
398
|
+
<uplinternal-miniheading> Current Incidents </uplinternal-miniheading>
|
|
399
|
+
${this.currentIncidences.length?le``:le` <div class="noIncidentBox">No incidents ongoing.</div> `}
|
|
400
|
+
<uplinternal-miniheading> Past Incidents </uplinternal-miniheading>
|
|
401
|
+
${this.pastIncidences.length?le``:le` <div class="noIncidentBox">No past incidents in the last 90 days.</div> `}
|
|
402
|
+
</div>
|
|
403
|
+
`}dispatchReportNewIncident(){this.dispatchEvent(new CustomEvent("reportNewIncident",{}))}dispatchStatusSubscribe(){this.dispatchEvent(new CustomEvent("statusSubscribe",{}))}};gr.demo=()=>le` <upl-statuspage-incidents></upl-statuspage-incidents> `,gr.styles=[Qe.elementBasic.staticStyles,Se`
|
|
404
|
+
:host {
|
|
405
|
+
display: block;
|
|
406
|
+
background: ${ge.bdTheme("#eeeeeb","#222222")};
|
|
407
|
+
font-family: Inter;
|
|
408
|
+
color: ${ge.bdTheme("#333333","#ffffff")};
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.mainbox {
|
|
412
|
+
max-width: 900px;
|
|
413
|
+
margin: auto;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.noIncidentBox {
|
|
417
|
+
background: ${ge.bdTheme("#ffffff","#333333")};;
|
|
418
|
+
padding: 10px;
|
|
419
|
+
margin-bottom: 15px;
|
|
420
|
+
border-radius: 3px;
|
|
421
|
+
}
|
|
422
|
+
`],Ae([yt({type:Array})],gr.prototype,"currentIncidences",2),Ae([yt({type:Array})],gr.prototype,"pastIncidences",2),Ae([yt({type:Boolean})],gr.prototype,"whitelabel",2),gr=Ae([Ze("upl-statuspage-incidents")],gr);var Xi=class extends Be{constructor(){super()}render(){return le`
|
|
423
|
+
<style>
|
|
424
|
+
</style>
|
|
425
|
+
<div class="mainbox">
|
|
426
|
+
Everything is working normally!
|
|
427
|
+
</div>
|
|
428
|
+
`}};Xi.demo=()=>le`
|
|
429
|
+
<upl-statuspage-statusbar></upl-statuspage-statusbar>
|
|
430
|
+
`,Xi.styles=[ge.defaultStyles,Se`
|
|
431
|
+
:host {
|
|
432
|
+
padding: 20px 0px 15px 0px;
|
|
433
|
+
display: block;
|
|
434
|
+
background: ${ge.bdTheme("#eeeeeb","#222222")};;
|
|
435
|
+
font-family: Inter;
|
|
436
|
+
color: #fff;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.mainbox {
|
|
440
|
+
margin: auto;
|
|
441
|
+
max-width: 900px;
|
|
442
|
+
text-align: center;
|
|
443
|
+
background: #19572E;
|
|
444
|
+
line-height: 50px;
|
|
445
|
+
border-radius: 3px;
|
|
446
|
+
}
|
|
447
|
+
`],Xi=Ae([Ze("upl-statuspage-statusbar")],Xi);var Ki=class extends Be{constructor(){super()}render(){return le`
|
|
448
|
+
<style></style>
|
|
449
|
+
<uplinternal-miniheading>Yesterday & Today</uplinternal-miniheading>
|
|
450
|
+
<div class="mainbox">
|
|
451
|
+
<div class="barContainer">
|
|
452
|
+
${(()=>{let t=0,r=[];for(;t<48;)t++,r.push(le` <div class="bar"></div> `);return r})()}
|
|
453
|
+
<div class="timeIndicator"></div>
|
|
454
|
+
</div>
|
|
455
|
+
</div>
|
|
456
|
+
`}};Ki.demo=()=>le` <upl-statuspage-statusdetails></upl-statuspage-statusdetails> `,Ki.styles=[Qe.elementBasic.staticStyles,Se`
|
|
457
|
+
:host {
|
|
458
|
+
position: relative;
|
|
459
|
+
padding: 0px 0px 15px 0px;
|
|
460
|
+
display: block;
|
|
461
|
+
background: ${ge.bdTheme("#eeeeeb","#222222")};;
|
|
462
|
+
font-family: Inter;
|
|
463
|
+
color: #fff;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.mainbox {
|
|
467
|
+
margin: auto;
|
|
468
|
+
max-width: 900px;
|
|
469
|
+
text-align: right;
|
|
470
|
+
background: ${ge.bdTheme("#ffffff","#333333")};;
|
|
471
|
+
line-height: 50px;
|
|
472
|
+
border-radius: 3px;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.mainbox .barContainer {
|
|
476
|
+
position: relative;
|
|
477
|
+
display: flex;
|
|
478
|
+
padding: 6px;
|
|
479
|
+
overflow: hidden;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.mainbox .barContainer .bar {
|
|
483
|
+
margin: 4px;
|
|
484
|
+
width: 11px;
|
|
485
|
+
border-radius: 3px;
|
|
486
|
+
height: 40px;
|
|
487
|
+
background: #2deb51;
|
|
488
|
+
}
|
|
489
|
+
.timeIndicator {
|
|
490
|
+
position: absolute;
|
|
491
|
+
width: 11px;
|
|
492
|
+
height: 11px;
|
|
493
|
+
background: #FF9800;
|
|
494
|
+
top: 56px;
|
|
495
|
+
left: 400px;
|
|
496
|
+
transform: rotate(45deg);
|
|
497
|
+
}
|
|
498
|
+
`],Ki=Ae([Ze("upl-statuspage-statusdetails")],Ki);var eo=class extends Be{constructor(){super()}render(){return le`
|
|
499
|
+
<style></style>
|
|
500
|
+
<uplinternal-miniheading>Last 150 days</uplinternal-miniheading>
|
|
501
|
+
<div class="mainbox">
|
|
502
|
+
<div class="statusMonth">
|
|
503
|
+
${(()=>{let t=0,r=[];for(;t<30;)t++,r.push(le` <div class="statusDay"></div> `);return r})()}
|
|
504
|
+
</div>
|
|
505
|
+
<div class="statusMonth">
|
|
506
|
+
${(()=>{let t=0,r=[];for(;t<30;)t++,r.push(le` <div class="statusDay"></div> `);return r})()}
|
|
507
|
+
</div>
|
|
508
|
+
<div class="statusMonth">
|
|
509
|
+
${(()=>{let t=0,r=[];for(;t<30;)t++,r.push(le` <div class="statusDay"></div> `);return r})()}
|
|
510
|
+
</div>
|
|
511
|
+
<div class="statusMonth">
|
|
512
|
+
${(()=>{let t=0,r=[];for(;t<30;)t++,r.push(le` <div class="statusDay"></div> `);return r})()}
|
|
513
|
+
</div>
|
|
514
|
+
<div class="statusMonth">
|
|
515
|
+
${(()=>{let t=0,r=[];for(;t<30;)t++,r.push(le` <div class="statusDay"></div> `);return r})()}
|
|
516
|
+
</div>
|
|
517
|
+
</div>
|
|
518
|
+
`}};eo.demo=()=>le` <upl-statuspage-statusmonth></upl-statuspage-statusmonth> `,eo.styles=[at.staticStyles,Se`
|
|
519
|
+
:host {
|
|
520
|
+
position: relative;
|
|
521
|
+
padding: 0px 0px 15px 0px;
|
|
522
|
+
display: block;
|
|
523
|
+
background: ${ge.bdTheme("#eeeeeb","#222222")};;
|
|
524
|
+
font-family: Inter;
|
|
525
|
+
color: #fff;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.mainbox {
|
|
529
|
+
margin: auto;
|
|
530
|
+
max-width: 900px;
|
|
531
|
+
display: grid;
|
|
532
|
+
grid-template-columns: repeat(5, calc(100% / 5 - 80px / 5));
|
|
533
|
+
grid-column-gap: 20px;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.statusMonth {
|
|
537
|
+
background: ${ge.bdTheme("#ffffff","#333333")};;
|
|
538
|
+
min-height: 20px;
|
|
539
|
+
display: grid;
|
|
540
|
+
padding: 10px;
|
|
541
|
+
grid-template-columns: repeat(6, auto);
|
|
542
|
+
grid-gap: 9px;
|
|
543
|
+
border-radius: 3px;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.statusMonth .statusDay {
|
|
547
|
+
width: 16px;
|
|
548
|
+
height: 16px;
|
|
549
|
+
background: #2deb51;
|
|
550
|
+
border-radius: 3px;
|
|
551
|
+
}
|
|
552
|
+
`],eo=Ae([Ze("upl-statuspage-statusmonth")],eo);export{Zi as UplStatuspageAssetsselector,Ur as UplStatuspageFooter,jn as UplStatuspageHeader,gr as UplStatuspageIncidents,Xi as UplStatuspageStatusbar,Ki as UplStatuspageStatusdetails,eo as UplStatuspageStatusmonth};
|
|
553
|
+
/*! Bundled license information:
|
|
554
|
+
|
|
555
|
+
punycode/punycode.js:
|
|
556
|
+
(*! https://mths.be/punycode v1.4.1 by @mathias *)
|
|
557
|
+
|
|
558
|
+
is-number/index.js:
|
|
559
|
+
(*!
|
|
560
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
561
|
+
*
|
|
562
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
563
|
+
* Released under the MIT License.
|
|
564
|
+
*)
|
|
565
|
+
|
|
566
|
+
randomatic/index.js:
|
|
567
|
+
(*!
|
|
568
|
+
* randomatic <https://github.com/jonschlinkert/randomatic>
|
|
569
|
+
*
|
|
570
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
571
|
+
* Released under the MIT License.
|
|
572
|
+
*)
|
|
573
|
+
|
|
574
|
+
sweet-scroll/sweet-scroll.js:
|
|
575
|
+
(*! @preserve sweet-scroll v4.0.0 - tsuyoshiwada | MIT License *)
|
|
576
|
+
(*! *****************************************************************************
|
|
577
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
578
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
579
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
580
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
581
|
+
|
|
582
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
583
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
584
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
585
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
586
|
+
|
|
587
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
588
|
+
and limitations under the License.
|
|
589
|
+
***************************************************************************** *)
|
|
590
|
+
|
|
591
|
+
@lit/reactive-element/css-tag.js:
|
|
592
|
+
(**
|
|
593
|
+
* @license
|
|
594
|
+
* Copyright 2019 Google LLC
|
|
595
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
596
|
+
*)
|
|
597
|
+
|
|
598
|
+
@lit/reactive-element/reactive-element.js:
|
|
599
|
+
(**
|
|
600
|
+
* @license
|
|
601
|
+
* Copyright 2017 Google LLC
|
|
602
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
603
|
+
*)
|
|
604
|
+
|
|
605
|
+
lit-html/lit-html.js:
|
|
606
|
+
(**
|
|
607
|
+
* @license
|
|
608
|
+
* Copyright 2017 Google LLC
|
|
609
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
610
|
+
*)
|
|
611
|
+
|
|
612
|
+
lit-element/lit-element.js:
|
|
613
|
+
(**
|
|
614
|
+
* @license
|
|
615
|
+
* Copyright 2017 Google LLC
|
|
616
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
617
|
+
*)
|
|
618
|
+
|
|
619
|
+
lit-html/is-server.js:
|
|
620
|
+
(**
|
|
621
|
+
* @license
|
|
622
|
+
* Copyright 2022 Google LLC
|
|
623
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
624
|
+
*)
|
|
625
|
+
|
|
626
|
+
@lit/reactive-element/decorators/property.js:
|
|
627
|
+
(**
|
|
628
|
+
* @license
|
|
629
|
+
* Copyright 2017 Google LLC
|
|
630
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
631
|
+
*)
|
|
632
|
+
|
|
633
|
+
lit-html/directive.js:
|
|
634
|
+
(**
|
|
635
|
+
* @license
|
|
636
|
+
* Copyright 2017 Google LLC
|
|
637
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
638
|
+
*)
|
|
639
|
+
|
|
640
|
+
lit-html/directives/unsafe-html.js:
|
|
641
|
+
(**
|
|
642
|
+
* @license
|
|
643
|
+
* Copyright 2017 Google LLC
|
|
644
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
645
|
+
*)
|
|
646
|
+
|
|
647
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
648
|
+
(**
|
|
649
|
+
* @license
|
|
650
|
+
* Copyright 2017 Google LLC
|
|
651
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
652
|
+
*)
|
|
653
|
+
|
|
654
|
+
@lit/reactive-element/decorators/state.js:
|
|
655
|
+
(**
|
|
656
|
+
* @license
|
|
657
|
+
* Copyright 2017 Google LLC
|
|
658
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
659
|
+
*)
|
|
660
|
+
|
|
661
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
662
|
+
(**
|
|
663
|
+
* @license
|
|
664
|
+
* Copyright 2017 Google LLC
|
|
665
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
666
|
+
*)
|
|
667
|
+
|
|
668
|
+
@lit/reactive-element/decorators/base.js:
|
|
669
|
+
(**
|
|
670
|
+
* @license
|
|
671
|
+
* Copyright 2017 Google LLC
|
|
672
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
673
|
+
*)
|
|
674
|
+
|
|
675
|
+
@lit/reactive-element/decorators/query.js:
|
|
676
|
+
(**
|
|
677
|
+
* @license
|
|
678
|
+
* Copyright 2017 Google LLC
|
|
679
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
680
|
+
*)
|
|
681
|
+
|
|
682
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
683
|
+
(**
|
|
684
|
+
* @license
|
|
685
|
+
* Copyright 2017 Google LLC
|
|
686
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
687
|
+
*)
|
|
688
|
+
|
|
689
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
690
|
+
(**
|
|
691
|
+
* @license
|
|
692
|
+
* Copyright 2017 Google LLC
|
|
693
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
694
|
+
*)
|
|
695
|
+
|
|
696
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
697
|
+
(**
|
|
698
|
+
* @license
|
|
699
|
+
* Copyright 2021 Google LLC
|
|
700
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
701
|
+
*)
|
|
702
|
+
|
|
703
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
704
|
+
(**
|
|
705
|
+
* @license
|
|
706
|
+
* Copyright 2017 Google LLC
|
|
707
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
708
|
+
*)
|
|
709
|
+
|
|
710
|
+
lit-html/directive-helpers.js:
|
|
711
|
+
(**
|
|
712
|
+
* @license
|
|
713
|
+
* Copyright 2020 Google LLC
|
|
714
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
715
|
+
*)
|
|
716
|
+
|
|
717
|
+
lit-html/async-directive.js:
|
|
718
|
+
(**
|
|
719
|
+
* @license
|
|
720
|
+
* Copyright 2017 Google LLC
|
|
721
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
722
|
+
*)
|
|
723
|
+
|
|
724
|
+
lit-html/directives/private-async-helpers.js:
|
|
725
|
+
(**
|
|
726
|
+
* @license
|
|
727
|
+
* Copyright 2021 Google LLC
|
|
728
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
729
|
+
*)
|
|
730
|
+
|
|
731
|
+
lit-html/directives/until.js:
|
|
732
|
+
(**
|
|
733
|
+
* @license
|
|
734
|
+
* Copyright 2017 Google LLC
|
|
735
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
736
|
+
*)
|
|
737
|
+
|
|
738
|
+
lit-html/directives/async-replace.js:
|
|
739
|
+
(**
|
|
740
|
+
* @license
|
|
741
|
+
* Copyright 2017 Google LLC
|
|
742
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
743
|
+
*)
|
|
744
|
+
|
|
745
|
+
lit-html/directives/async-append.js:
|
|
746
|
+
(**
|
|
747
|
+
* @license
|
|
748
|
+
* Copyright 2017 Google LLC
|
|
749
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
750
|
+
*)
|
|
751
|
+
*/
|
|
752
|
+
//# sourceMappingURL=bundle.js.map
|